Article View: gnu.bash.bug
Article #226Re: bug or feature with 'type' command ?
From: alan da wicked
Date: Sun, 26 Jul 1992 08:28
Date: Sun, 26 Jul 1992 08:28
30 lines
1517 bytes
1517 bytes
In article <1992Jul23.133619.4012@ugle.unit.no> bjornw@colargol.edb.tih.no (Bjoern Wennberg) writes:
Hi!
What should the 'type' command display ?
When I do 'type -all man' I get
man is aliased to `bman'
man is ./man
^^^^^
This is a directory and shouldn't be displayed according to the
documentation of 'type'. The 'help type' says:
If the -all flag is used, displays all of the places that contain an
executable named `file'. This includes aliases and functions, if and
only if the -path flag is not also used.
Is this correct?
bjornw>
bjornw@colargol.edb.tih.no
I believe it does this because the execute bit is set on directories. This
could/sould be corrected by checking for the directory bit, but apparently is
not (patch?)
--
=================================================================
alan da wicked (rod@ccwf.cc.utexas.edu)
=================================================================
Technical Details
Message-ID:
<ROD.92Jul26032852@happy.cc.utexas.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!ccwf.cc.utexas.edu!rodReferences:
<1992Jul23.133619.4012@ugle.unit.no>Show Full Headers
Complete Article Headers
Newsgroups: gnu.bash.bug Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!ccwf.cc.utexas.edu!rod From: rod@ccwf.cc.utexas.edu (alan da wicked) Subject: Re: bug or feature with 'type' command ? Message-ID: <ROD.92Jul26032852@happy.cc.utexas.edu> Sender: gnulists@ai.mit.edu Organization: The University of Texas at Austin References: <1992Jul23.133619.4012@ugle.unit.no> Distribution: gnu Date: Sun, 26 Jul 1992 08:28:52 GMT Approved: bug-bash@prep.ai.mit.edu Lines: 31