X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-1.6 required=5.0 	tests=AWL,BAYES_00,J_CHICKENPOX_83
X-Spam-Check-By: sourceware.org
Message-ID: <326529.8461.qm@web25503.mail.ukl.yahoo.com>
Date: Sun, 30 Aug 2009 21:07:01 +0000 (GMT)
From: Marco Atzeri <marco_atzeri@yahoo.it>
Subject: R: pipelines with paths containing spaces
To: cygwin@cygwin.com, David Christensen <dpchrist@holgerdanske.com>
In-Reply-To: <C805838568BA4CBA81CA871CDED956D7@p43400e>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com



--- Lun 31/8/09, David Christensen ha scritto:

> Da: David Christensen=20
> Oggetto: pipelines with paths containing spaces
> A: cygwin cygwin.com
> Data: Luned=EC 31 agosto 2009, 10:27
> cygwin:
>=20
> I am having trouble using pipelines with paths containing
> spaces:
>=20
> =A0 =A0 2009-08-31 01:16:32 Administrator@p43400e ~
> =A0 =A0 $ ls -d /cygdrive/c/Documents\ and\
> Settings/
> =A0 =A0 /cygdrive/c/Documents and Settings/
>=20
> =A0 =A0 2009-08-31 01:16:50 Administrator@p43400e ~
> =A0 =A0 $ ls -d /cygdrive/c/Documents\ and\ Settings/
> | xargs ls
> =A0 =A0 ls: cannot access /cygdrive/c/Documents: No
> such file or directory
> =A0 =A0 ls: cannot access and: No such file or
> directory
> =A0 =A0 ls: cannot access Settings/: No such file or
> directory
>=20
> =A0 =A0 2009-08-31 01:16:55 Administrator@p43400e ~
> =A0 =A0 $ ls `ls -d /cygdrive/c/Documents\ and\
> Settings/`
> =A0 =A0 ls: cannot access /cygdrive/c/Documents: No
> such file or directory
> =A0 =A0 ls: cannot access and: No such file or
> directory
> =A0 =A0 ls: cannot access Settings/: No such file or
> directory
>=20
>=20
> I tried writing a Perl script to escape spaces, but that
> didn't work.
>=20
>=20
> I tried writing a Perl script to wrap paths in single
> quotes and escape
> single quotes, but that didn't work.
>=20
>=20
> I tried searching the mailing list archive, the FAQ, and
> Google
> variations on 'cygwin pipeline spaces', but didn't come up
> with a solid
> hit.
>=20
>=20
> I installed Cygwin two days ago.=A0 Attached please find
> cygcheck.out.
>=20
>=20
> Any suggestions?
>=20
>=20
> TIA,
>=20
> David

not really cygwin specific=20

find /cygdrive/c/Documents\ and\ Settings/ -print0 |xargs --null ls

see  "man xargs"

regards
Marco

=20





--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

