From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 114368 invoked by alias); 30 Sep 2015 19:35:39 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 114358 invoked by uid 89); 30 Sep 2015 19:35:38 -0000 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 Received: from smtp.ht-systems.ru (HELO smtp.ht-systems.ru) (78.110.50.177) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Wed, 30 Sep 2015 19:35:36 +0000 Received: from [95.165.144.62] (helo=darkdragon.lan) by smtp.ht-systems.ru with esmtpa (Exim 4.80.1) (envelope-from ) (Authenticated sender: postmaster@rootdir.org) id 1ZhNA2-0008QV-50 ; Wed, 30 Sep 2015 22:35:30 +0300 Received: from [192.168.1.10] (HELO daemon2.darkdragon.lan) by daemon2 (Office Mail Server 0.8.12 build 08053101) with SMTP; Wed, 30 Sep 2015 19:27:47 -0000 Date: Wed, 30 Sep 2015 19:35:00 -0000 From: Andrey Repin Reply-To: cygwin@cygwin.com Message-ID: <7910682845.20150930222746@yandex.ru> To: Eliot Moss , cygwin@cygwin.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.d50bba72719f91cdb61cd892ddf83b25.788987e5cc.wbe@email11.secureserver.net> <560BFA8D.2050701@cs.umass.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2015-09/txt/msg00521.txt.bz2 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