ln -s exe magic (coreutils 6.7-2)

DePriest, Jason R. jrdepriest@gmail.com
Tue Apr 17 21:22:00 GMT 2007

On 4/9/07, Eric Blake  wrote:
[ cut out lots of useful information to save space ]

Will your proposed changes in coreutils fix the following problem I
just discovered today?

Create a symbolic link
ln -s /usr/bin/foo /foo
where /usr/bin/foo is really usr/bin/foo.exe

ls -l /foo
foo -> /usr/bin/foo.exe

rm /foo
fails with
No such file or directory

ls -l /
returns whatever else is in the directory plus
foo.exe -> /usr/bin/foo.exe

rm /foo.exe
works fine

So I was baffled that the .exe was required since at no point in my
link creating process did I reference a .exe on the end of the files.

$ cygcheck -c coreutils
Cygwin Package Information
Package              Version        Status
coreutils            6.7-2          OK

I will include the entire cygcheck -s -v -r if you need it.


Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

More information about the Cygwin mailing list