bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Using absolute path instead of relative path on all operations


From: Till Halbach
Subject: Using absolute path instead of relative path on all operations
Date: Fri, 06 Feb 2009 12:23:40 +0100
User-agent: Thunderbird 2.0.0.19 (X11/20090105)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


Greetings,

I have come over something which I think of as a bug, but you might
disagree.

Consider
$ cd
$ mkdir dir1 dir2
$ cd dir1
$ ln -s ../dir2 link
$ cd link
$ pwd
gives $HOME/dir1/link
but
$ ls ..
lists $HOME instead of dir1. Or, if you (being in link/)
$ cp file ..
the file gets copied into $HOME, not dir1/, i.e., the absolute path is
always used, ignoring any links.

I believe the path $PWD should always be used instead of the absolute
one. Thus, in the example, 'file' should be copied from dir2/ (or link/)
into dir1/.

Thanks!
Till

- --
http://etill.net/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkmMHbkACgkQxsc38LbNE95/BQCgqUKdtz/FLwMrqSVCVXEjZwSb
tIMAn1B5GFBSbQdYt4Gkf/BZ/ov38+1z
=T5Ui
-----END PGP SIGNATURE-----





reply via email to

[Prev in Thread] Current Thread [Next in Thread]