delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/10/10/09:41:32

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Reply-To: <nhv AT cape DOT com>
From: "Norman Vine" <nhv AT cape DOT com>
To: <cygwin AT sourceware DOT cygnus DOT com>
Subject: RE: BUG: Invalid assumption about file paths beginning with '\'
Date: Tue, 10 Oct 2000 09:28:47 -0400
Message-ID: <000b01c032c0$8e5f6520$c236ba8c@nhv>
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook 8.5, Build 4.71.2232.26
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211
Importance: Normal
In-Reply-To: <20001010122157.4618.qmail@web122.yahoomail.com>

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

Norman


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