This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: backtics
Hello,
* On Fri, Sep 24, 2010 at 08:39:21AM -0600 Eric Blake wrote:
> On 09/24/2010 07:43 AM, melkor@orangepalantir.org wrote:
>> This probably isn't a backtic problem, but using backtics causes it.
>>
>> ls `ls`
>>
>> results in file not found errors. ie:
>>
>> bash-3.2$ ls
>> 35ms 40ms 80ms
>> bash-3.2$ ls `ls`
>> ls: cannot access 35ms: No such file or directory
>> ls: cannot access 40ms: No such file or directory
>> ls: cannot access 80ms: No such file or directory
>> bash-3.2$
>
> WJFFM:
> $ mkdir abc && cd abc && touch 35ms 40ms 80ms
> $ ls
> 35ms 40ms 80ms
> $ ls `ls`
> 35ms 40ms 80ms
Another option (for the OP):
Have you tried the command:
$ ls|wc -l
You ask why? Then try this:
$ touch "35ms 40ms 80ms"
$ ls `ls`
ls: cannot access 35ms: No such file or directory
ls: cannot access 40ms: No such file or directory
ls: cannot access 80ms: No such file or directory
Here, ls|wc -l gives 1 as output.
HTH,
Spiro.
--
Spiro R. Trikaliotis http://opencbm.sf.net/
http://www.trikaliotis.net/ http://www.viceteam.org/
--
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