X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org From: "Jon Beniston" To: Subject: cygpath and spaces in filenames when reading from a file Date: Tue, 29 Dec 2009 17:11:13 -0000 Message-ID: <000801ca88a9$ec71c510$c5554f30$@com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit x-cr-hashedpuzzle: BZDQ CBbJ CkmT CoVp C4Wm DKvK Ddiv Edon E1zA FOAC HWd4 HaY/ HtZd IUhd JzK4 KH2T;1;YwB5AGcAdwBpAG4AQABjAHkAZwB3AGkAbgAuAGMAbwBtAA==;Sosha1_v1;7;{88060374-E1DD-4737-8A8B-2E4BA4C94F68};agBvAG4AQABiAGUAbgBpAHMAdABvAG4ALgBjAG8AbQA=;Tue, 29 Dec 2009 17:11:11 GMT;YwB5AGcAcABhAHQAaAAgAGEAbgBkACAAcwBwAGEAYwBlAHMAIABpAG4AIABmAGkAbABlAG4AYQBtAGUAcwAgAHcAaABlAG4AIAByAGUAYQBkAGkAbgBnACAAZgByAG8AbQAgAGEAIABmAGkAbABlAA== x-cr-puzzleid: {88060374-E1DD-4737-8A8B-2E4BA4C94F68} 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 Hi, cygpath can read a list of paths to convert from a file, when started with -file. However, how do you specify paths with spaces in them in this mode? It seems quoting the path or using \ doesn't seem to work. E.g: $cygpath --windows --file - "/usr/local/my dir/" "\usr\local\my dir\" $ cygpath --windows --file - /usr/local/my\ dir/ C:\cygwin\usr\local\my\ dir\ Cheers, Jon -- 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