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 Subject: R: pipelines with paths containing spaces To: cygwin AT cygwin DOT com, David Christensen In-Reply-To: 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 AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: 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 --- 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