This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]