delorie.com/archives/browse.cgi | search |
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=iQ/bUfjZF3vSNXGdhGwEaPCNr7OmNAoM9yNVKYU3BJGKjEPTZi2na | |
R3RnDW3rTWCGnUkgB7nnuomWOt3gH/DTFePK1b/Bfen0Rb143yO97PthM3Ns3bid | |
FWDVQULz8a6iGSL8DWQsDkiUDe9ae9kY4YgJ0p78HM/izSy340mMOQ= | |
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=b4AU+M5N4bzJ1SLIpGUbrXDvCgs=; b=rghp4OmW8O7hWCvUGPRnTi/UdLgd | |
4Srqe3GMcKCJYbVQV3yLeDsGjHCGdpWdxbmfJfESISE2ZjDCIPrxLbYr3yGs3BpE | |
SGs1PgqL3hctsBhGjml8BE+jOBYMCiY27lJxisCbf/5stInW8xzXJbS5gXJ+syEG | |
BPGOR05iS8xPSFc= | |
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.1 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 16:09:47 +0000 (UTC) |
Lines: | 31 |
Message-ID: | <loom.20130930T180840-645@post.gmane.org> |
References: | <loom DOT 20130930T180640-573 AT post DOT gmane DOT org> |
Mime-Version: | 1.0 |
User-Agent: | Loom/3.14 (http://gmane.org/) |
X-IsSubscribed: | yes |
Sorry, this is a re-post. I did not completely sanitize the last post, leading to inconsistent info. Unfortunately, I can't edit or retract a post from a mailing list. Here is the self-consistent post: I'm doing something wrong with xargs. If I simply use "cygpath -aw" with 2 arguments, it works fine: $cygpath -aw ~/projects/project1 ~/projects/project2 C:\cygwin\home\UserName\projects\project1 C:\cygwin\home\UserName\projects\project2 If I use "xargs -n 1" with echo, it works fine: $dirs | xargs echo ~/projects/project1 ~/projects/project2 $dirs | xargs -n 1 echo ~/projects/project1 ~/projects/project2 However, if I use xargs with cygpath, it doesn't: $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. -- 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 |