autoconf-patches
[Top][All Lists]
Advanced

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

Re: [Mingw-users] Re: MSYS ln -s to directory


From: Keith MARSHALL
Subject: Re: [Mingw-users] Re: MSYS ln -s to directory
Date: Tue, 11 Apr 2006 14:02:10 +0100

Ralf Wildenhues wrote, quoting me:
>>   $ ln [dir1/]file dir2              ; # fails
>
> Does this also fail if `dir2' is `.'?  I'm a bit unsure about
> whether we should test this in the code, or discourage it in the
> documentation.

No, both `ln' and `ln -s' will succeed, if all arguments except the
last refer to files, and the final arg is `.'; thus

  ln dir1/file .

creates ./file as a hard link to dir1/file, while

  ln -s dir1/file .

creates ./file as a copy of dir1/file, just as if the command had
been given as

  cp -p dir1/file .


Regards,
Keith.




reply via email to

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