delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/11/25/14:23:47

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <011801c3b389$8c027a90$7b05000a@corp.silverbacksystems.com>
From: "Dai Itasaka" <ditasaka AT silverbacksystems DOT com>
To: <cygwin AT cygwin DOT com>
Subject: Where am I anyway?
Date: Tue, 25 Nov 2003 11:23:03 -0800
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
X-AntiVirus: checked by AntiVir MailGate (version: 2.0.1.6; AVE: 6.22.0.1; VDF: 6.22.0.49; host: ns.silverbacksystems.com)

myname AT myhost> cd c:/temp/foo
myname AT myhost> ls
bar/  foo.file
myname AT myhost> cd bar
myname AT myhost> ls
bar.file
myname AT myhost> cd c:/temp/foo/bar
myname AT myhost> ls
bar.file
myname AT myhost> ls ..
bar/  foo.file
myname AT myhost> cd c:/temp/foo/bar/
myname AT myhost> ls
bar.file
myname AT myhost> ls ..
bar.file
myname AT myhost> cd ..
myname AT myhost> ls
bar.file
myname AT myhost> ls ..
bar/  foo.file
myname AT myhost>


If the directory name you give cd meets this criteria:

    - start with a drive letter
    - end with a slash

then it looks like cd takes you where you want to go but it really
takes you one below so that you have to climb up one level to be safe.

Bash doesn't observe this problem. This is using tcsh.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019