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 From: Chris Faylor Date: Tue, 10 Oct 2000 12:45:12 -0400 To: cygwin AT sources DOT redhat DOT com Subject: Re: BUG: Invalid assumption about file paths beginning with '\' Message-ID: <20001010124512.H3352@cygnus.com> Reply-To: cygwin AT sources DOT redhat DOT com Mail-Followup-To: cygwin AT sources DOT redhat DOT com References: <20001010122157 DOT 4618 DOT qmail AT web122 DOT yahoomail DOT com> <000b01c032c0$8e5f6520$c236ba8c AT nhv> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.6i In-Reply-To: <000b01c032c0$8e5f6520$c236ba8c@nhv>; from nhv@cape.com on Tue, Oct 10, 2000 at 09:28:47AM -0400 On Tue, Oct 10, 2000 at 09:28:47AM -0400, Norman Vine wrote: >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 It is not clear from this context, but hopefully you know that \ is a special character in bash. I think a one line statement of that fact might have been more useful than the above 20 lines of "What's he trying to say?" So, just to be perfectly clear, you have to either double the \ character in bash or quote it if you want a program to see it. cgf -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com