On Mon, Mar 29, 2004 at 01:33:32AM +0400, Dmitry V. Levin wrote: > On Sun, Mar 28, 2004 at 10:22:47AM +0100, J.D. Hood wrote: > > Dmitry V. Levin wrote: > [...] > > > You suggest to change "readlink -f" behaviour to more compatible way, > > > i.e. "readlink -f /path/to/foo" will also succeed when "/path/to" > > > exists and "/path/to/foo" points to some target "/another/path/to/bar" > > > where "/another/path/to" is a directory", right? > > > > Yes. [...] > I'll submit necessary changes to the code and testsuit a bit later.
I've implemented the changes mentioned above. That is, "readlink -f" is now more compatible with prior implementations, old behaviour moved to "readlink -e", and your proposed relaxed -ff mode implemented as "-m". I don't insist on these option names though. Proposed patch is not attached due to the size of tests, you can find it in ftp://ftp.altlinux.org/pub/people/ldv/coreutils/ The patch is for coreutils-5.2.1, but applies cleanly to cvs head too. Tested with on GNU/Linux. I'd like to know whether it passes the tests on systems with resolvepath(2), as well as on systems without canonicalize_file_name() and resolvepath(2). Also please have a look at my tests to ensure I understood your suggestion correctly. -- ldv
pgp00000.pgp
Description: PGP signature
_______________________________________________ Bug-coreutils mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/bug-coreutils
