X-Spam-Check-By: sourceware.org To: cygwin AT cygwin DOT com From: Olivier Lefevre Subject: ls returning file list as one big string Date: Sat, 21 Jul 2007 23:21:20 +0200 Lines: 30 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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: List-Subscribe: List-Archive: List-Post: List-Help: , 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/