Paul Eggert wrote:
Perhaps a rewrite of the diagnostic instead? Something like this?

$ tar -cf foo.tar a b c foo.tar d e f g
tar: foo.tar: archive cannot contain itself; not dumped

Excellent idea! This makes explicit the cause of the problem.

Reply via email to