On Mon, Sep 13, 2004 at 04:04:43PM +1000, Matthew Davidson wrote: > lrwxrwxrwx 1 mdavids mdavids 12 2004-09-13 15:52 application -> version/0.3/ > -rw-r--r-- 1 mdavids mdavids 0 2004-09-13 15:43 file > drwxr-sr-x 5 mdavids mdavids 4096 2004-09-13 15:51 version
> [EMAIL PROTECTED]:~/test$ cd application is the equivalent of doing cd version/0.3 > [EMAIL PROTECTED]:~/test/application$ ls -l ../file > ls: ../file: No such file or directory Your parent directory is now version, you probably want ../../file > But bash even autocompletes the name "file" for me! Bash remembers your old parent directory and intercepts, giving you the tab completion. Try using 'ls' and you shouldn't see the same thing. For example, go into /tmp and create a symlink called test to, say, /usr/include. Then do 'cd test' and 'cd ..' in bash and you'll be back in /tmp. Do the same thing in something like csh and you (should be) in /usr, because it doesn't keep a directory history stack but just uses chdir(). -i [EMAIL PROTECTED] http://www.gelato.unsw.edu.au
signature.asc
Description: Digital signature
-- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html