Article View: gnu.bash.bug
Article #777Return value from builtin hash
From: Brian Fox
Date: Mon, 27 Nov 1989 17:45
Date: Mon, 27 Nov 1989 17:45
20 lines
1110 bytes
1110 bytes
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
Technical Details
Message-ID:
<8911271745.AA13606@aurel.cns.caltech.edu.>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!AUREL.CNS.CALTECH.EDU!bfoxReferences:
<ANDREWT.89Nov24203433@watsnew.waterloo.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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: <ANDREWT.89Nov24203433@watsnew.waterloo.edu> Sender: daemon@tut.cis.ohio-state.edu Reply-To: bfox@aurel.cns.caltech.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 20