Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-ID: <17B78BDF120BD411B70100500422FC6309E121@IIS000> From: Bernard Dautrevaux To: "'nhv AT cape DOT com'" , cygwin AT sourceware DOT cygnus DOT com Subject: RE: BUG: Invalid assumption about file paths beginning with '\' Date: Tue, 10 Oct 2000 16:41:37 +0200 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" > -----Original Message----- > From: Norman Vine [mailto:nhv AT cape DOT com] > Sent: Tuesday, October 10, 2000 3:29 PM > To: cygwin AT sourceware DOT cygnus DOT com > Subject: RE: BUG: Invalid assumption about file paths > beginning with '\' > > > Earnie Boyd writes: > > >Well, as Chris corrected, the current 1.1.4 release does allow the \ > reference > >to refer to the root of the current device. I just tested > this and it does > >indeed work this way. > > Yes, however this feature may not always yield the 'expected' result. > > NHV:/f> mkdir foo > NHV:/f> cd foo > NHV:/f/foo> touch jnk > NHV:/f/foo> ls \foo Don't you think you must: ls \\foo or ls '\foo' here? You've in fact typed ls foo as \f is translated to f by bash... > ls: foo: No such file or directory > NHV:/f/foo> ls > jnk > NHV:/f/foo> touch foo > NHV:/f/foo> ls \foo > foo > NHV:/f/foo> ls > foo jnk > NHV:/f/foo> cd \ > > bash: syntax error: unexpected end of file > NHV:/f/foo> cd ../ > NHV:/f> cd \foo > NHV:/f/foo> cd .. > NHV:/f> cd \foo > NHV:/f/foo> cd \foo > bash: cd: foo: No such file or directory > > >Let me suggest that in order to make your life easier that you > >use Cygwin POSIXly. > > Good advice indeed !! > > Cheers Regards, Bernard -------------------------------------------- Bernard Dautrevaux Microprocess Ingenierie 97 bis, rue de Colombes 92400 COURBEVOIE FRANCE Tel: +33 (0) 1 47 68 80 80 Fax: +33 (0) 1 47 88 97 85 e-mail: dautrevaux AT microprocess DOT com b DOT dautrevaux AT usa DOT net -------------------------------------------- -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com