Thread View: gnu.bash.bug
2 messages
2 total messages
Started by Bjoern Wennberg
Thu, 23 Jul 1992 13:36
bug or feature with 'type' command ?
Author: Bjoern Wennberg
Date: Thu, 23 Jul 1992 13:36
Date: Thu, 23 Jul 1992 13:36
19 lines
941 bytes
941 bytes
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
Re: bug or feature with 'type' command ?
Author: 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)
=================================================================
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads