delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/07/21/18:45:46

X-Spam-Check-By: sourceware.org
Message-ID: <46A28CC1.7070605@byu.net>
Date: Sat, 21 Jul 2007 16:46:25 -0600
From: Eric Blake <ebb9 AT byu DOT net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.5) Gecko/20070716 Thunderbird/2.0.0.5 Mnenhy/0.7.5.666
MIME-Version: 1.0
To: cygwin AT cygwin DOT com, lefevrol AT yahoo DOT com
Subject: Re: ls returning file list as one big string
References: <f7ttjj$h7q$1 AT sea DOT gmane DOT org> <46A28476 DOT 9010706 AT byu DOT net> <f7u1cs$r7n$1 AT sea DOT gmane DOT org>
In-Reply-To: <f7u1cs$r7n$1@sea.gmane.org>
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

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Olivier Lefevre on 7/21/2007 4:26 PM:
>> I am unable to reproduce this.  Perhaps you can paste the entire contents
>> of a directory in question?
> 
> $ cd /c/Java/j2sdk1.5.0/src/java/util/jar
> 
> $ for i in `\ls *.java`; do echo \"$i\"; done
> "Attributes.java
> JarEntry.java

Are you sure you have $IFS set correctly?  Bash does word splitting of ``
output according to the current contents of $IFS, which should normally be
space-tab-newline unless you want to split on different characters.
Whereas the version that avoids `` altogether does not end up using $IFS.

Which means I'm starting to think this problem is not cygwin-specific.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             ebb9 AT byu DOT net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGoozB84KuGfSFAYARAi73AJ0aO7Ltsh7AxZCC6ZlO3NNkItEBBACgpkWI
HIM+k7ugxJbguex74QXQ3Y8=
=mUyz
-----END PGP SIGNATURE-----

--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019