delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT 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 AT yahoo DOT it> |
Subject: | R: pipelines with paths containing spaces |
To: | cygwin AT cygwin DOT com, David Christensen <dpchrist AT holgerdanske DOT com> |
In-Reply-To: | <C805838568BA4CBA81CA871CDED956D7@p43400e> |
MIME-Version: | 1.0 |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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 |
--- 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 AT 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 AT 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 AT 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |