The 'ln -s' command
Sam Lawrance
boris at brooknet.com.au
Tue May 23 18:47:07 PDT 2006
On 24/05/2006, at 11:42 AM, Sam Lawrance wrote:
>
> On 24/05/2006, at 1:21 AM, gs_stoller at juno.com wrote:
>
>> I tried the 'ln -s' command in bothe 4.3 & 4.7 in a situation
>> where it should fail and it did, but it still had a return/exit
>> code of 0 , I think it should have been nonzero. I tried 'ln -s
>> a b' where the file b existed (and was a directory) and I
>> wanted to create the file named a also pointing to it. The
>> correct form was 'ln -s b a'.
>
> See the synopsis in the manpage for 'ln'. It exited nonzero
> because you successfully put a symlink under the directory 'b',
> pointing to 'a'.
>
> oddie:~ sam$ mkdir b
> oddie:~ sam$ ln -s a b
> oddie:~ sam$ ls -l b
> total 8
> lrwxr-xr-x 1 sam sam 1 May 24 11:42 a -> a
Oops, I meant: "it exited with zero status because ..."
More information about the freebsd-hackers
mailing list