delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/12/29/12:15:34

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" <jon AT beniston DOT com>
To: <cygwin AT cygwin DOT com>
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
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: <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

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019