This is the mail archive of the
cygwin
mailing list for the Cygwin project.
ls returning file list as one big string
- From: Olivier Lefevre <lefevrol at yahoo dot com>
- To: cygwin at cygwin dot com
- Date: Sat, 21 Jul 2007 23:21:20 +0200
- Subject: ls returning file list as one big string
As the subject says, ls returns the file list as one big string for some
directories but not others. One sign of that is that, e.g.,
for i in `\ls *.java`; do sed -e $i; done
fails with "File too long". Once can prove it with
for i in `\ls *.java`; do echo \"$i\"; done
which will return. e.g.,
"FirstFile.java
SecondFIle.java"
instead of
"FirstFile.java"
"SecondFIle.java"
as it should. This happens for some directories but not all, on the same
mount. I am at a loss to understand this behaviour.
Please no condescending lectures abut I should have googled etc: Google
and other search facilities aren't much use if you don't know what you
are looking for.
Thanks a lot,
-- O.L.
--
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/