| delorie.com/archives/browse.cgi | search |
| X-Spam-Check-By: | sourceware.org |
| To: | cygwin AT cygwin DOT com |
| From: | Olivier Lefevre <lefevrol AT yahoo DOT com> |
| Subject: | ls returning file list as one big string |
| Date: | Sat, 21 Jul 2007 23:21:20 +0200 |
| Lines: | 30 |
| Message-ID: | <f7ttjj$h7q$1@sea.gmane.org> |
| Mime-Version: | 1.0 |
| User-Agent: | Thunderbird 2.0.0.0 (Windows/20070326) |
| X-IsSubscribed: | yes |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Id: | <cygwin.cygwin.com> |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sourceware.org/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |