X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=0.6 required=5.0 tests=AWL,BAYES_40,DATE_IN_FUTURE_12_24 X-Spam-Check-By: sourceware.org From: "David Christensen" To: Cc: "'Marco Atzeri'" References: <326529 DOT 8461 DOT qm AT web25503 DOT mail DOT ukl DOT yahoo DOT com> Subject: RE: pipelines with paths containing spaces Date: Mon, 31 Aug 2009 04:26:39 -0700 Message-ID: <5677D92E64C548E2BC4F24F5FBBBBF2D@p43400e> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit In-Reply-To: <326529.8461.qm@web25503.mail.ukl.yahoo.com> 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 Marco Atzeri wrote: > not really cygwin specific > find /cygdrive/c/Documents\ and\ Settings/ -print0 |xargs --null ls > see "man xargs" That explains it. Here's a work-around: 2009-08-31 04:04:36 dpchrist AT p43400e ~ $ ls -d /cygdrive/c/Documents\ and\ Settings/ | perl -ne 's/\n/\00/; print' | xargs -0 ls -dl drwxrwxr-x+ 9 Administrators SYSTEM 0 Aug 30 01:19 /cygdrive/c/Docum ents and Settings/ Add the Perl one-liner to my .bashrc as an alias: 2009-08-31 04:14:45 dpchrist AT p43400e ~ $ vi .bashrc alias nl2null="perl -ne 's/\n/\00/; print'" Life is good! 2009-08-31 04:16:03 dpchrist AT p43400e ~ $ ls -d /cygdrive/c/Documents\ and\ Settings/ | nl2null | xargs -0 l s -dl drwxrwxr-x+ 9 Administrators SYSTEM 0 Aug 30 01:19 /cygdrive/c/Docum ents and Settings/ Thanks! :-) David -- 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