[3404] in Athena Bugs

home help back first fref pref prev next nref lref last post

Small bug in cp(1) man page

daemon@ATHENA.MIT.EDU (sethf@ATHENA.MIT.EDU)
Thu Oct 12 05:39:17 1989

From: sethf@ATHENA.MIT.EDU
Date: Thu, 12 Oct 89 05:38:45 -0400
To: bugs@ATHENA.MIT.EDU
At the end of the cp man page, the following line is given :

          cd sourcedir; tar cf - . | (cd destdir tar xf -)

Shouldn't that be :

          cd sourcedir && tar cf - . | (cd destdir && tar xf -)

Bug 1 : Lack of delimiter between "destdir" and "tar"

Bug 2 : The ; between "sourcedir" and "tar" should be &&, as one wants
the rest of the command to execute only if the first cd succeeds.

================
Seth Finkelstein
sethf@athena.mit.edu




home help back first fref pref prev next nref lref last post