tobold.org

correct • elegant • free

△ comp.unix.shell △

◅ I need to get hold of a simple Unix Shell source code

"rehash" for Bourne shell ? ▻

"rehash" for Bourne shell ?

In article <381935E9.18719D50@psi.ch>,
Huesser Peter  <Peter.Huesser@psi.ch> wrote:
>Is there something similar like the csh "rehash" command for the Bourne
>shell ?

Traditional Bourne shells don't do command location hashing.

A quick look round some non-traditional Bourne shells (bash, Solaris sh,
ksh) suggests they all understand `hash -r' to completely rebuild the
hash.

Tim.
--
Tim Goodwin   | "People think [ W. Gibson is ] hi-tech because his prose
Leicester, UK | is as pleasant to read as a C++ program." -- JT

Original headers:

From: tjg@star.le.ac.uk (Tim Goodwin)
Newsgroups: comp.unix.shell
Subject: Re: "rehash" for Bourne shell ?
Date: 29 Oct 1999 13:04:02 +0100
Organization: University of Leicester, UK
Message-ID: <7vc2g8$2nq$1@ltpcg.star.le.ac.uk>
References: <381935E9.18719D50@psi.ch>

△ comp.unix.shell △

◅ I need to get hold of a simple Unix Shell source code

"rehash" for Bourne shell ? ▻