bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

possible bug


From: Alan Rogers
Subject: possible bug
Date: Sun, 14 Apr 2002 17:55:49 -0600
User-agent: Mutt/1.3.12i

Perhaps this is a feature, but it smells to me like a bug.  

Synopsis: Suppose that you have a subdirectory named xpt, where x is any 
character.  Then the command "cd opt" will first print the name of
that directory and then move you into it.  Here's an example:

rogers@rowan:~> mkdir apt
rogers@rowan:~> cd apt
rogers@rowan:~/apt> touch a b c
rogers@rowan:~/apt> ls
a  b  c
rogers@rowan:~/apt> cd
rogers@rowan:~> cd opt
apt
rogers@rowan:~/apt> ls
a  b  c
rogers@rowan:~/apt> rm -rf apt
rogers@rowan:~/apt> ls opt
ls: opt: No such file or directory

rogers@rowan:~/apt> bash --version
GNU bash, version 2.05.0(1)-release (i386-suse-linux)
Copyright 2000 Free Software Foundation, Inc.

-- 
Alan Rogers                     PHONE: (801) 581-5529 (w),
Dept. of Anthropology                  486-6013 (h), 581-6252 (fax)
270S 1400E, Univ of Utah        EMAIL: rogers@anthro.utah.edu
Salt Lake City, UT 84112, USA   WEB  : www.anthro.utah.edu/~rogers
                  



reply via email to

[Prev in Thread] Current Thread [Next in Thread]