symlinks show .exe

Vincent Rivière vincent.riviere@freesbee.fr
Sun Oct 4 20:25:00 GMT 2009


David Antliff wrote:
> In my experience, it should be possible to create symlinks to any
> arbitrary target, regardless of whether it actually exists or not.
> Therefore, if I create a symlink to "/bin/ls" then I'd expect that to
> be the content of the symlink - the automatic behaviour of rewriting
> it to "/bin/ls.exe" is unexpected and therefore probably incorrect
> according to some "standard" somewhere.

I totally agree.
The symlink target should be stored "as is" without further interpretation.
The example of non existing target is good.
An this gives me an idea:
$ mv /bin/ls /bin/ls.bak
$ ln -s /bin/ls lls
$ mv /bin/ls.bak /bin/ls
$ ls -l lls
lrwxrwxrwx 1 vincent cygwin 7 Oct 4 22:19 lls -> /bin/ls
$ ./lls
The symlink looks good and it works ;-)
-- 
Vincent Rivière
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple


More information about the Cygwin mailing list

AltStyle によって変換されたページ (->オリジナル) /