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: 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 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 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: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit User-Agent: Loom/3.14 (http://gmane.org/) X-IsSubscribed: yes Paul 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