delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/09/06/09:18:20

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
Message-ID: <4F055774D458D51195BC000347246B39E80394@xcguk001.inri.co.uk>
From: "Watts, Simon (UK)" <swatts AT northgrum-it DOT eu DOT com>
To: "'cygwin AT cygwin DOT com'" <cygwin AT cygwin DOT com>
Subject: cygpath -s behaviour
Date: Fri, 6 Sep 2002 14:14:33 +0100
MIME-Version: 1.0

Just spend a merry lunchtime tracking this behaviour down (it would be cruel
to call it a bug):

Recap:
	cygpath -[mw]s "DIR" 
echos the file/directory DIR in shortened windows format (ie, mangles to 8.3
format).

If a component part of "DIR" is not in 8.3 format, and does not exist in the
directory structure, then (I presume) 'cygpath' cannot obtain the mangled
form.  The upshot is that cygpath returns nothing.  It may set an error
state, I havent checked.

It would be useful if this was mentioned in the man page or '--help'.

Is there any more useful behaviour?  All I am really trying to do in using
the '-s' option is to mangle any componts of the path containing spaces
(writing cross-platform scripts here...).  

What about an option to mangle only those elements of a path which (a) exist
and (b) contain spaces?




SAW.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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