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:date:from:reply-to:message-id:to:subject | |
:in-reply-to:references:mime-version:content-type | |
:content-transfer-encoding; q=dns; s=default; b=DEU04E7gohs1GomD | |
jqI0ZgMx3SBmz8Rg1rLaLQQqT74ijxyFHFiNgq07Jcn4AAre2DFAdpOw5UFUciX3 | |
XnkS9Myhjiu0WhNIXbUubg279tv56Pu/XRoDJz6uIn6OpZZWTL1I5ZFId9Q9fNB4 | |
rjgeltrvi/e5ND5DOE3f7qSWEz8= | |
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:date:from:reply-to:message-id:to:subject | |
:in-reply-to:references:mime-version:content-type | |
:content-transfer-encoding; s=default; bh=3L0K/Yuy/8K+AWYoVHbkVW | |
3fl3k=; b=AEjzSYjjzkqZTIB5ZJ/28Bak3B8l1z0OjgyGOt5zU0ZerKavA5xIzF | |
8JqrFHNkgTY2nEMn82ptivZ1MMXliUAB55ZwZyZ5IiMctDfqFlINXbokRHowaYcK | |
VvhZ8ihxtDbBEPM+m1nHBPBVvhZIvB6/qg1vSVUa+h9hRb5JptoZ0= | |
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=4.1 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,KAM_THEBAT,SPF_SOFTFAIL autolearn=no version=3.3.2 |
X-HELO: | smtp.ht-systems.ru |
Date: | Wed, 30 Sep 2015 22:27:46 +0300 |
From: | Andrey Repin <anrdaemon AT yandex DOT ru> |
Reply-To: | cygwin AT cygwin DOT com |
Message-ID: | <7910682845.20150930222746@yandex.ru> |
To: | Eliot Moss <moss AT cs DOT umass DOT edu>, cygwin AT cygwin DOT com |
Subject: | Re: Why does robocopy confuse input and output files defined with Cygwin/bash and perl? |
In-Reply-To: | <560BFA8D.2050701@cs.umass.edu> |
References: | <20150930075400 DOT d50bba72719f91cdb61cd892ddf83b25 DOT 788987e5cc DOT wbe AT email11 DOT secureserver DOT net> <560BFA8D DOT 2050701 AT cs DOT umass DOT edu> |
MIME-Version: | 1.0 |
X-IsSubscribed: | yes |
Greetings, Eliot Moss! > Dealing with "odd" characters like \ and such can be a pain, huh? > Perhaps it will help you to know that bash will expand variables > inside double-quoted arguments, i.e., "${src}". (You can write > "$src" if you want, but over the years I am finding it clearer / > better to use the { } to make clear the name of the variable I > want expanded.) > Also, you may find the cygpath utility helpful, and the $( ) idiom > of bash. It isn't "idiom of bash", it is a POSIX construction. > Thus: > robocopy /s "$(cygpath -w /cygdrive/c/Users/siegfriend/Documents/bin)" "$(cygpath -w > /cygdrive/f/backup/unison/bin)" > I believe this will do what you want. cygpath can be very helpful > hen you desire to run a Windows program from the cygwin environment. I would suggest cygpath -m. -- With best regards, Andrey Repin Wednesday, September 30, 2015 22:26:55 Sorry for my terrible english... -- 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 |