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]

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/


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