[gnu.bash.bug] Return value from builtin hash

andrewt@watsnew.waterloo.edu (Andrew Thomas) (11/25/89)

In bash 1.04,  the hash command does not return a value indicating
success or failure.  I would like to put the following in my .aliases:

if hash less ; then alias more=less ; fi

but hash always returns success.
--

Andrew Thomas
andrewt@watsnew.waterloo.edu	Systems Design Eng.	University of Waterloo
"If a million people do a stupid thing, it's still a stupid thing." - Opus

bfox@AUREL.CNS.CALTECH.EDU (Brian Fox) (11/28/89)

   Date: 25 Nov 89 01:34:33 GMT
   From: ists!yunexus!utzoo!utgpu!watmath!watserv1!watcgl!andrewt@jarvis.csri.toronto.edu  (Andrew Thomas)
   Organization: University of Waterloo, Waterloo, Ontario, Canada
   Sender: bug-bash-request@prep.ai.mit.edu


   In bash 1.04,  the hash command does not return a value indicating
   success or failure.  I would like to put the following in my .aliases:

   if hash less ; then alias more=less ; fi

   but hash always returns success.
   --

Okay.  In the meantime, quick fix #20987:

	if [ "$(type -path less)" ]; then more=less; fi

Brian