hi ya dan congrats you found more differences in ln ... :-) - very interesting differences in ln ( see the next test below ... done same way as yours...
- .pine having been local to the dir makes a difference when my .prinrc023592 file was elsewhere - yes the hardlinks for gunzip and gzip is not a issue in that case since its in the same directory/partitions - hardlinks is a problem when it crosses directories and partitions since it keeps the leading / and i did my silly ln tests on a old rh box... Maggie:~> ln --version ln (GNU fileutils) 3.16 thanx alvin -- re-testing for fun - - same as your results !!! - Maggie:/tmp/test# touch .pine Maggie:/tmp/test# ln -s ./.pine x.s Maggie:/tmp/test# ln ./.pine x.h Maggie:/tmp/test# ls -la total 2 drwxr-xr-x 2 root root 1024 May 15 18:44 ./ drwxrwxrwt 4 root root 1024 May 15 18:44 ../ -rw-r--r-- 2 root root 0 May 15 18:44 .pine -rw-r--r-- 2 root root 0 May 15 18:44 x.h lrwxrwxrwx 1 root root 7 May 15 18:44 x.s -> ./.pine On 15 May 2001, Dan Christensen wrote: > Alvin Oga <[EMAIL PROTECTED]> writes: > > > i dont use hardlinks.. ( creates portability problems ) > > If you have standard Debian software installed, like gzip, then > you use hardlinks. > > [EMAIL PROTECTED]:/# ls -l /bin/*zip* > -rwxr-xr-x 4 root root 46160 Dec 2 1999 /bin/gunzip* > -rwxr-xr-x 4 root root 46160 Dec 2 1999 /bin/gzip* > > These files have 4 links to them. > > > Maggie:/tmp/test# ln -s ./pinerc023592 x.s > > Maggie:/tmp/test# ln ./pinerc023592 x.h > > Maggie:/tmp/test# ls -la > > total 2 > > drwxr-xr-x 2 root root 1024 May 14 20:11 ./ > > drwxrwxrwt 4 root root 1024 May 14 20:08 ../ > > lrwxrwxrwx 2 root root 24 May 14 20:08 pinerc023592 -> > > /home/alvin/pinerc023592 > > lrwxrwxrwx 2 root root 24 May 14 20:08 x.h -> > > /home/alvin/pinerc023592 > > lrwxrwxrwx 1 root root 14 May 14 20:11 x.s -> > > ./pinerc023592 > > What unix are you using? That x.h sure looks like a soft symlink > to me. On my Debian system: > > [EMAIL PROTECTED]:/tmp/test% touch .pine > [EMAIL PROTECTED]:/tmp/test% ln -s ./.pine x.s > [EMAIL PROTECTED]:/tmp/test% ln ./.pine x.h > [EMAIL PROTECTED]:/tmp/test% ls -la > total 8 > drwx------ 2 jdc jdc 4096 May 15 10:04 ./ > drwxrwxrwt 23 root root 4096 May 15 10:03 ../ > -rw------- 2 jdc jdc 0 May 15 10:03 .pine > -rw------- 2 jdc jdc 0 May 15 10:03 x.h > lrwxrwxrwx 1 jdc jdc 7 May 15 10:04 x.s -> ./.pine > > A hardlink isn't "symbolic" in that the file name of the target > isn't stored. Your test shows a softlink. > > Dan >