From maintainers-request at octave dot org Wed Dec 14 17:31:51 2005 Subject: Re: wav error From: Russell Standish To: "John W. Eaton" Cc: Bill Denney , Stefan van der Walt , maintainers@octave.org Date: Thu, 15 Dec 2005 10:30:26 +1100 --6sX45UoQRIJXqkqR Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable I suppose the problem is that ':' is a perfectly legitimate posix filename character - interpreting it as magical may well break other progra= ms. For instance - suppose you had a machine called "c", and accidently typed: 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. Cheers 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 : 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: >=20 > | Something just occurred to me. As far as I know, the c: drive is alway= s=20 > | put into /cygdrive/c/ in cygwin. Would it be feasible to always transl= ate=20 > | ":\" at the beginning of a filename into "/cygdrive//"?= =20 > | This would be a bit of a hack, but it would help many windows users out. >=20 > 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. >=20 > jwe --=20 *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 R dot Standish at unsw dot edu dot au =20 Australia http://parallel.hpc.unsw.edu.au/rks International prefix +612, Interstate prefix 02 ---------------------------------------------------------------------------- --6sX45UoQRIJXqkqR Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFDoKsRu0uihy7TX/oRAtpXAJkB1NqJT4XJSWHBcWWqUiE410XdZQCeJH/Y MSrxmFsBnEpFG7DLKTLWbNc= =3p4g -----END PGP SIGNATURE----- --6sX45UoQRIJXqkqR--