Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!AUREL.CNS.CALTECH.EDU!bfox From: bfox@AUREL.CNS.CALTECH.EDU (Brian Fox) Newsgroups: gnu.bash.bug Subject: Return value from builtin hash Message-ID: <8911271745.AA13606@aurel.cns.caltech.edu.> Date: 27 Nov 89 17:45:14 GMT References: Sender: daemon@tut.cis.ohio-state.edu Reply-To: bfox@aurel.cns.caltech.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 20 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