[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[MiNT] touching symbolic links
I've encountered a discrepance in the behaviour of touching symlinks:
Using the following script:
#cat ttouchln
touch -d 2010-06-06 z
ln -s z xz
ls -l xz z
ls -lL xz z
echo touch xz
touch xz
ls -l xz z
ls -lL xz z
rm -f z xz
I get on cygwin:
lrwxrwxrwx 1 hk Benutzer 1 May 31 12:22 xz -> z
-rw-r--r-- 1 hk Benutzer 0 Jun 6 2010 z
-rw-r--r-- 1 hk Benutzer 0 Jun 6 2010 xz
-rw-r--r-- 1 hk Benutzer 0 Jun 6 2010 z
touch xz
lrwxrwxrwx 1 hk Benutzer 1 May 31 12:22 xz -> z
-rw-r--r-- 1 hk Benutzer 0 May 31 12:22 z
-rw-r--r-- 1 hk Benutzer 0 May 31 12:22 xz
-rw-r--r-- 1 hk Benutzer 0 May 31 12:22 z
On MiNT:
lrwxrwxrwx 1 root wheel 1 May 31 12:22 xz -> z
-rw-rw-rw- 1 root wheel 0 Jun 6 2010 z
-rw-rw-rw- 1 root wheel 0 Jun 6 2010 xz
-rw-rw-rw- 1 root wheel 0 Jun 6 2010 z
touch xz
lrwxrwxrwx 1 root wheel 1 May 31 12:22 xz -> z
-rw-rw-rw- 1 root wheel 0 Jun 6 2010 z
-rw-rw-rw- 1 root wheel 0 Jun 6 2010 xz
-rw-rw-rw- 1 root wheel 0 Jun 6 2010 z
That means MiNT does not touch the link-target. Who is right?
-Helmut
--