This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Where am I anyway?
- From: "Dai Itasaka" <ditasaka at silverbacksystems dot com>
- To: <cygwin at cygwin dot com>
- Date: Tue, 25 Nov 2003 11:23:03 -0800
- Subject: Where am I anyway?
myname@myhost> cd c:/temp/foo
myname@myhost> ls
bar/ foo.file
myname@myhost> cd bar
myname@myhost> ls
bar.file
myname@myhost> cd c:/temp/foo/bar
myname@myhost> ls
bar.file
myname@myhost> ls ..
bar/ foo.file
myname@myhost> cd c:/temp/foo/bar/
myname@myhost> ls
bar.file
myname@myhost> ls ..
bar.file
myname@myhost> cd ..
myname@myhost> ls
bar.file
myname@myhost> ls ..
bar/ foo.file
myname@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/