delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/05/31/10:30:34

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
From: Chris Faylor <cgf AT cygnus DOT com>
Date: Wed, 31 May 2000 10:29:40 -0400
To: "Cygwin Mailing List (E-mail)" <cygwin AT sourceware DOT cygnus DOT com>
Cc: stodghil AT cs DOT cornell DOT edu
Subject: Re: Obtaining short DOS file names?
Message-ID: <20000531102940.A20429@cygnus.com>
Reply-To: cygwin AT sourceware DOT cygnus DOT com
Mail-Followup-To: "Cygwin Mailing List (E-mail)" <cygwin AT sourceware DOT cygnus DOT com>,
stodghil AT cs DOT cornell DOT edu
References: <CE5C042F6A0CD411BBE000A0C9558F2C0C25DF AT exchange DOT cs DOT cornell DOT edu>
Mime-Version: 1.0
User-Agent: Mutt/1.2i
In-Reply-To: <CE5C042F6A0CD411BBE000A0C9558F2C0C25DF@exchange.cs.cornell.edu>; from stodghil@cs.cornell.edu on Wed, May 31, 2000 at 10:21:39AM -0400

On Wed, May 31, 2000 at 10:21:39AM -0400, Paul Stodghill wrote:
>I'm working with some shell scripts under Cygwin that do not handle spaces
>in file names very well. "No problem," I think, "I'll just use the short
>versions of the file names".
>
>Is there anyway to obtain the short version of a file name from the long
>version within a shell script?

There is no cygwin-specific way of getting the short file name.  The concept
has no meaning on UNIX.  There are Windows programs available which do this.
'dir' is one of them, for instance.

Is there some reason why quoting the filename doesn't work?

cgf

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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