This is the mail archive of the
cygwin
mailing list for the Cygwin project.
How to strictly differentiate <file>.exe with <file> ???
- From: Emmanuel Lepavec <manu_lepavec at yahoo dot fr>
- To: "cygwin at cygwin dot com" <cygwin at cygwin dot com>
- Date: Wed, 18 Jun 2014 18:19:34 +0100
- Subject: How to strictly differentiate <file>.exe with <file> ???
- Authentication-results: sourceware.org; auth=none
- Reply-to: Emmanuel Lepavec <manu_lepavec at yahoo dot fr>
Hello,
I have an issue with the latest version of Cygwin (previously I was using an old one 1.5.25, I think...).
When using basic commands such as 'ls', 'rm', now the shell resolve incorrectly filenames without extension.
If a same file with '.exe' extension exists, it will be used.
For example, take a directory with a single file 'a.exe'.
$ ls -a
. .. bar.exe
$ ls bar
bar
$ rm bar
rm: remove regular empty file `bar'?
The command should have returned 'rm: cannot remove `bar': No such file or directory'
If I want to delete only 'bar' (without extension), it will actually delete 'bar.exe' file. This is an unexpected behavior which pose an big issue in some of my build scripts.
Is there some way to strictly differentiate 'bar' from 'bar.exe'?
Thank you.
--
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