history

Glenn Sieb ges+lists at wingfoot.org
Thu Sep 19 19:54:37 UTC 2013


On 9/19/13 3:36 PM, william benton wrote:
> when I log into free bsd I am in the sh shell. i type history at the
> command line and the machine says history not found. If I type h at
> the command line it works like i expect the history command to work.
> In the csh or tcsh shells history works as well as h. why does
> entering history at the command line work in the csh and tcsh  shells
> but not in the sh shell. Considering that all three shells seem to
> have the same .cshrc file?


Bourne shell (sh) has no history component.

Bourne Again shell (bash) does, as well as C-shell and Turbo C-shell
(csh/tcsh).

http://en.wikipedia.org/wiki/Bourne_shell#Criticism

Best,
--Glenn




More information about the freebsd-questions mailing list