[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: wav error

From: Russell Standish
Subject: Re: wav error
Date: Thu, 15 Dec 2005 10:30:26 +1100
User-agent: Mutt/1.4i

I suppose the problem is that ':' is a perfectly legitimate posix
filename character - interpreting it as magical may well break other programs.

For instance - suppose you had a machine called "c", and accidently

   cp  foo.tar.gz c:

instead of scp foo.tar.gz c:. This will create a file with the name
"c:foo.tar.gz" - mind you if c: was interpreted consistently as
referring to a drive letter, then the results would perhaps not be too
serious. In fact, the correct scp command will fail to work as
intended. But then not being able to name your machines with single
letters is perhaps not too much funtionality to give away.


PS did you realise that it is impossible to create any file with the
name aux, aux.*, prn, prn.* etc on a Windows file system. This is a
far more insidious magical character sequence than the simple case of
leading <letter>: I had a file called aux.cc in my software
distribution that caused no end of grief when I tried to port it to Cygwin!

On Wed, Dec 14, 2005 at 05:52:26PM -0500, John W. Eaton wrote:
> On 14-Dec-2005, Bill Denney wrote:
> | Something just occurred to me.  As far as I know, the c: drive is always 
> | put into /cygdrive/c/ in cygwin.  Would it be feasible to always translate 
> | "<alpha>:\" at the beginning of a filename into "/cygdrive/<alpha>/"? 
> | This would be a bit of a hack, but it would help many windows users out.
> I don't think Octave (and every application) should have to deal with
> details like this.  If you want to have this kind of magic translation
> happen, then isn't the place for that the Cygwin code that handles
> files?  I suspect there is a reason that they have not already done
> this.
> jwe

*PS: A number of people ask me about the attachment to my email, which
is of type "application/pgp-signature". Don't worry, it is not a
virus. It is an electronic signature, that may be used to verify this
email came from me if you have PGP or GPG installed. Otherwise, you
may safely ignore this attachment.

A/Prof Russell Standish                  Phone 8308 3119 (mobile)
Mathematics                                    0425 253119 (")
UNSW SYDNEY 2052                         address@hidden             
Australia                                http://parallel.hpc.unsw.edu.au/rks
            International prefix  +612, Interstate prefix 02

Attachment: pgpSfFwZpsJT6.pgp
Description: PGP signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]