| 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:reply-to:subject:references:to:from:cc | |
| :message-id:date:mime-version:in-reply-to:content-type | |
| :content-transfer-encoding; q=dns; s=default; b=ACo0xHt1NbmrNlsd | |
| EyqSvRajtUfOkR+8t4aHS2KnGZhkTMrKZ/ieA9Tc29m2cwvOasCqnGIv9SJIsJp/ | |
| YrBbX8gnl1cnyNT/dO9Pv+8pezEwLHoIBOVQHU+RlRh5t6DlDCatXRV381iBFuyA | |
| H73v3geh20xPQS3uJuWucqmTnzY= | |
| 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:reply-to:subject:references:to:from:cc | |
| :message-id:date:mime-version:in-reply-to:content-type | |
| :content-transfer-encoding; s=default; bh=CrkGAT0gmiffIO/tUg1u9K | |
| 9fblM=; b=T6qrTFg8hTSKaD2GeXcm/KZ4NngqPLgNsd7jtipAmvVqiF38//Xa5O | |
| YY19WAEA/aBn9KBUD+dBUpx3puK+KfRCx+N6OZNV43IcESaw/UbRSZqdnp7H0ky3 | |
| Bqat9XtpaMV6qouFRm5H1FVkfUluez1dX64pLxOAXtUDA2++Mof9E= | |
| 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.2 required=5.0 tests=AWL,BAYES_50,KAM_LAZY_DOMAIN_SECURITY,T_RP_MATCHES_RCVD autolearn=no version=3.3.2 |
| X-HELO: | csmail.cs.umass.edu |
| Reply-To: | moss AT cs DOT umass DOT edu |
| Subject: | Re: Why does robocopy confuse input and output files defined with Cygwin/bash and perl? |
| References: | <20150930075400 DOT d50bba72719f91cdb61cd892ddf83b25 DOT 788987e5cc DOT wbe AT email11 DOT secureserver DOT net> |
| To: | siegfried AT heintze DOT com |
| From: | Eliot Moss <moss AT cs DOT umass DOT edu> |
| Cc: | cygwin <cygwin AT cygwin DOT com> |
| Message-ID: | <560BFA8D.2050701@cs.umass.edu> |
| Date: | Wed, 30 Sep 2015 11:06:53 -0400 |
| User-Agent: | Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 |
| MIME-Version: | 1.0 |
| In-Reply-To: | <20150930075400.d50bba72719f91cdb61cd892ddf83b25.788987e5cc.wbe@email11.secureserver.net> |
| X-IsSubscribed: | yes |
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. 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.
Regards -- Eliot Moss
--
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 |