This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Is this a bug or a behavior?
- From: Jack Radigan <jprad at fastmail dot fm>
- To: cygwin at cygwin dot com
- Date: Wed, 13 Feb 2013 11:14:12 -0500
- Subject: 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