Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Date: Mon, 22 Jul 2002 13:48:00 +0400
From: egor duda <deo@logos-m.ru>
Reply-To: egor duda <cygwin@cygwin.com>
Organization: deo
X-Priority: 3 (Normal)
Message-ID: <193351029193.20020722134800@logos-m.ru>
To: "Robert Collins" <robert.collins@syncretize.net>
CC: cygwin@cygwin.com, "'David A. Cobb'" <superbiskit@cox.net>
Subject: Re: Valid file-name characters
In-Reply-To: <000601c23161$55d02bd0$0200a8c0@lifelesswks>
References: <000601c23161$55d02bd0$0200a8c0@lifelesswks>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hi!

Monday, 22 July, 2002 Robert Collins robert.collins@syncretize.net wrote:

>> RC> I was just about to suggest that whatever character is used is used as
>> RC> an escape char rather than a literal replacement.
>> 
>> RC> i.e. 
>> RC> WIN32      CYGWIN
>> 'aux%c' ->> 'aux:'
>> 'aux%%' ->> 'aux%'
>> 
>> which means that
>> 
>> s='a%%'
>> touch $s
>> notepad $s
>> 
>> won't work.

RC> Unless cygwin detects that notepad is a non cygwin program, and therefor
RC> needs the on-disk name.

Even if cygwin knows that notepad is native program it can't tell for
sure if a%% is name of disk file. It may be a name of my dog to be
told from my computer speakers, for instance. An he surely won't like
if i misspell his name ;-)

RC> With 
'aux%' ->> 'aux:'

RC> s='aux:'
RC> touch $s
RC> notepad $s

RC> won't work either - unless cygwin detects that notepad...

That's exactly my point. Having some fancy rules for filename encoding
breaks interoperability with native tools. Escaping non-valid
characters like ':' is not big problem, since native tools can't use
such names anyway. But messing with valid characters like '%' is far
more dangerous and error-prone.

Egor.            mailto:deo@logos-m.ru ICQ 5165414 FidoNet 2:5020/496.19


--
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/

