delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2013/09/30/14:15:11

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:to:from:subject:date:message-id:references
:mime-version:content-type:content-transfer-encoding; q=dns; s=
default; b=f58DZpKNzHRaMOYkVMHsiezYIOHrXdW6RxDDDEGY/EibZE12De4sh
l6AA8laFFRwAc5MvNyYuR/s3V/VnfHmv1RrUQKAWdmr0cRDsZ5ORCQ94ZTOUZYU6
YJ1EfljjA4OP6+uPaJXkrAp+++I2xtZvJNPOM0JfqSqTbC8LtSqs2o=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:to:from:subject:date:message-id:references
:mime-version:content-type:content-transfer-encoding; s=default;
bh=qaIaG74frD/2Ids1w11KfJSxGpc=; b=Ve94Hs/0Z6AdAQgRtR6LioVJDaTS
2l/vVVRnOUvt30B7g3Ol9lquMD41W0gxerR8XG66OuS1ycaksZrTPesFunWIc26V
WwRScnMPts7E5mJBynaRdLnb3GAXErIkzkk55rAA5MESP1/2Hu5sYbdsf72+8X4g
i4J5w5uFgw+oans=
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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=0.3 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,RDNS_NONE,SPF_FAIL autolearn=no version=3.3.2
X-HELO: plane.gmane.org
To: cygwin AT cygwin DOT com
From: Paul <Paul DOT Domaskis AT gmail DOT com>
Subject: Re: Unexpected results: dirs =?utf-8?b?fA==?= xargs -n 1 cygpath -aw
Date: Mon, 30 Sep 2013 18:14:29 +0000 (UTC)
Lines: 17
Message-ID: <loom.20130930T201041-832@post.gmane.org>
References: <loom DOT 20130930T180640-573 AT post DOT gmane DOT org> <loom DOT 20130930T180840-645 AT post DOT gmane DOT org>
Mime-Version: 1.0
User-Agent: Loom/3.14 (http://gmane.org/)
X-IsSubscribed: yes

Paul <Paul.Domaskis <at> gmail.com> writes:
> ...if I use xargs with cygpath, it doesn't [give expected results]:
> 
>    $dirs | xargs -n 1 cygpath -aw
> 
>       C:\cygwin\home\UserName\projects\project1\~\projects\project1
>       C:\cygwin\home\UserName\projects\project1\~\projects\project2
> 
> Thanks if anyone can explain what I'm doing wrong.

Kenneth explained that "Tilde (~) is a shell shortcut, but you are 
bypassing the shell with $dirs | xargs, so it’s not expected to work".  To 
avoid the tildes, I successfully used:

   $dirs -l | xargs -n 1 cygpath -aw

Thanks, Kenneth!


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

- Raw text -


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