This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Is this a bug or a behavior?


Using the following script:
#!/bin/bash
set -x
cat << eof | `ls /bin | grep "^grep$"` alpha
alpha
omega
eof

Output from bash on Linux:
+ cat
++ ls /bin
++ grep '^grep$'
+ grep alpha
alpha

Output from bash on Cygwin:
+ cat
++ ls /bin
++ grep '^grep$'
+ alpha
./ls-test: line 3: alpha: command not found

But, the command 'cp /bin/grep ~/.' will copy grep.exe to my home directory.

Shouldn't 'ls' be suppressing the '.exe' extension for cygwin binaries in the same way that 'cp' appends it?

Seems inconsistent not to.

--
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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]