[gnu.bash.bug] Message "foo: is a directory" with "foo" execuatable on path and "foo" subdir

rcp@perseus.sw.mcc.com (Rob Pettengill) (06/12/89)

Running SunOS 3.5 and bash 0.99 ...

I first found this problem with "mail" (I have a directory called
"mail").  It appears that for any command called "foo" on my path, if
I have a subdirectory called "foo", then I get the message "foo": is a
directory. 

Example:

perseus:/usr/stp/rcp 47=> which xsrbm
/usr/stp/rcp/bin/xsrbm
perseus:/usr/stp/rcp 48=> mkdir xsrbm
perseus:/usr/stp/rcp 49=> xsrbm
xsrbm: is a directory
perseus:/usr/stp/rcp 50=> rmdir xsrbm
perseus:/usr/stp/rcp 51=> xsrbm
if: Missing file name.
perseus:/usr/stp/rcp 52=>

;rob

bfox@AUREL.CALTECH.EDU (Brian Fox) (06/13/89)

   Posted-Date: 12 Jun 89 16:14:01 GMT
   Date: 12 Jun 89 16:14:01 GMT
   From: milano!perseus!rcp@cs.utexas.edu  (Rob Pettengill)
   Organization: MCC Software Technology Program
   Sender: bug-bash-request@prep.ai.mit.edu

   Running SunOS 3.5 and bash 0.99 ...

   I first found this problem with "mail" (I have a directory called
   "mail").  It appears that for any command called "foo" on my path, if
   I have a subdirectory called "foo", then I get the message "foo": is a
   directory. 

   Example:

   perseus:/usr/stp/rcp 47=> which xsrbm
   /usr/stp/rcp/bin/xsrbm
   perseus:/usr/stp/rcp 48=> mkdir xsrbm
   perseus:/usr/stp/rcp 49=> xsrbm
   xsrbm: is a directory
   perseus:/usr/stp/rcp 50=> rmdir xsrbm
   perseus:/usr/stp/rcp 51=> xsrbm
   if: Missing file name.
   perseus:/usr/stp/rcp 52=>

   ;rob

This is a bug from versions earlier than .95.  Are you sure you are
using .99?  I cannot recreate this bug.

Brian Fox

rcp@perseus.sw.mcc.com (Rob Pettengill) (06/13/89)

In article <8906121841.AA11648@aurel.caltech.edu> bfox@ai.mit.edu writes:
;
;   Posted-Date: 12 Jun 89 16:14:01 GMT
;   Date: 12 Jun 89 16:14:01 GMT
;   From: milano!perseus!rcp@cs.utexas.edu  (Rob Pettengill)
;   Organization: MCC Software Technology Program
;   Sender: bug-bash-request@prep.ai.mit.edu
;
;   Running SunOS 3.5 and bash 0.99 ...
;
;   I first found this problem with "mail" (I have a directory called
;   "mail").  It appears that for any command called "foo" on my path, if
;   I have a subdirectory called "foo", then I get the message "foo": is a
;   directory. 
;
;   ...
;
;   ;rob
;
;This is a bug from versions earlier than .95.  Are you sure you are
;using .99?  I cannot recreate this bug.
;
;Brian Fox

I just ftped this last week and built it on the sun 3.  I only made
simple pathname changes in the makefile before building it.  As you can see
the version is 0.99

perseus:/usr/stp/rcp/tmp 88=> bash -version
GNU bash, version 0.99
perseus:/usr/stp/rcp/tmp 1=> which gcc
/usr/local/bin/gcc
perseus:/usr/stp/rcp/tmp 2=> mkdir gcc
perseus:/usr/stp/rcp/tmp 3=> gcc
gcc: is a directory
perseus:/usr/stp/rcp/tmp 4=> rmdir gcc
perseus:/usr/stp/rcp/tmp 5=> gcc
gcc: No source or object files specified.

;rob

bfox@AUREL.CALTECH.EDU (Brian Fox) (06/13/89)

   Date: 12 Jun 89 21:38:22 GMT
   From: milano!perseus!rcp@cs.utexas.edu  (Rob Pettengill)
   Organization: MCC Software Technology Program
   References: <8906121841.AA11648@aurel.caltech.edu>
   Sender: bug-bash-request@prep.ai.mit.edu

   In article <8906121841.AA11648@aurel.caltech.edu> bfox@ai.mit.edu writes:
   ;
   ;   From: milano!perseus!rcp@cs.utexas.edu  (Rob Pettengill)
   ;   Running SunOS 3.5 and bash 0.99 ...
   ;
   ;   "mail").  It appears that for any command called "foo" on my path, if
   ;   I have a subdirectory called "foo", then I get the message "foo": is a
   ;   directory. 
   ;   ...
   ;
   ;   ;rob
   ;
   ;This is a bug from versions earlier than .95.  Are you sure you are
   ;using .99?  I cannot recreate this bug.
   ;
   ;Brian Fox

   I just ftped this last week and built it on the sun 3.  I only made
   simple pathname changes in the makefile before building it.  As you can see
   the version is 0.99

   perseus:/usr/stp/rcp/tmp 88=> bash -version
   GNU bash, version 0.99
   perseus:/usr/stp/rcp/tmp 1=> which gcc
   /usr/local/bin/gcc
   perseus:/usr/stp/rcp/tmp 2=> mkdir gcc
   perseus:/usr/stp/rcp/tmp 3=> gcc
   gcc: is a directory
   perseus:/usr/stp/rcp/tmp 4=> rmdir gcc
   perseus:/usr/stp/rcp/tmp 5=> gcc
   gcc: No source or object files specified.

   ;rob

Please send me `printenv`.

Brian