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

Strange problem, symlinks and parent dirs

Hi folks!
I don't know if I'm missing something (if so please don't blame me) but
I think there is something wrong with symlinks and parent dirs.

Here an example:

$ pwd
$ mkdir -p dir1/dir2
$ touch dir1/dir2/file
$ ln -s dir1/dir2 dir2
$ cd dir2
$ pwd
$ mv file ..

The file is moved into /home/kobold/dir1 instead of /home/kobold
Is this right? IMHO it's confusing for the user. If pwd returns
"/home/kobold/dir2", .. should be resolved as "/home/kobold".

Thanks for your attention,

Attachment: signature.asc
Description: Questa parte del messaggio =?ISO-8859-1?Q?=E8?= firmata

Reply to: