-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Please use a subject line. It makes it less likely that your message will be discarded as junk.
According to Kartik K. Agaram on 9/9/2006 6:03 AM: > Hi, > > I suspect this may have come up on this list before, but a search didn't > reveal it*. > > Does POSIX require that coreutils commands use only physical path rather > than pwd to resolve relative paths? When pwd contains symlinks and we > try to operate upon relative paths that take us outside the symlink, the > effect is often jarring and non-intuitive. For many commands, POSIX requires that the utility use the underlying behavior of many syscalls, and those are required to operate on physical paths. However, there is nothing preventing coreutils from adding additional command-line options that tell tools to interpret $PWD and behave on relative paths logically. On the other hand, it is quite easy to type `pwd`/../z, and get a valid physical path to hand to cp, regardless of whether $PWD is currently physical or logical, rather than relying on the semantics of ../z being one way or the other. - -- Life is short - so eat dessert first! Eric Blake [EMAIL PROTECTED] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.1 (Cygwin) Comment: Public key at home.comcast.net/~ericblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFAwOr84KuGfSFAYARAoAdAKC4iDg6v/EIciskvog6+lbhNUmGZgCgsavw Yzt/BusSg6P5zlykVzjDoAA= =LYLx -----END PGP SIGNATURE----- _______________________________________________ Bug-coreutils mailing list [email protected] http://lists.gnu.org/mailman/listinfo/bug-coreutils
