*BSD News Article 52650


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!zombie.ncsc.mil!news.mathworks.com!newsfeed.internetmci.com!netnews.nwnet.net!news.uidaho.edu!usenet
From: Faried Nawaz <fn@uidaho.edu>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: sh history?
Date: 11 Oct 1995 14:15:52 -0700
Organization: guns.
Lines: 51
Sender: nawaz921@crater.cs.uidaho.edu
Distribution: world
Message-ID: <imivlv67sn.fsf@crater.cs.uidaho.edu>
References: <imgidataDG01B3.Ex7@netcom.com> <45cdmn$i9@tui.pinnacle.co.nz>
Reply-To: fn@uidaho.edu
NNTP-Posting-Host: crater.cs.uidaho.edu
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
In-reply-to: jonc@pinnacle.co.nz's message of 10 Oct 1995 13:11:03 +1300
X-Newsreader: (ding) Gnus v0.99.13

In article <45cdmn$i9@tui.pinnacle.co.nz> jonc@pinnacle.co.nz (Jonathan Chen) writes:

$ Plain "sh" is minimal. No history, command line expansion, programmable
$ commands, aliases etc. That's the way it's always been. Other shells that
$ will provide what you want: csh, tcsh, bash, ksh, zsh, whatever. Take
$ your pick..

I disagree -- /bin/sh on my machine (-current) can do aliases and has
(minimal) history functions (doesn't save to a file, though).

; /bin/sh
$ alias foo=oof
$ foo
oof: not found
$ exit
[status 2]
; clar
clar not found
[status 1]
; clear

; /bin/sh
$ pwd
/usr/home/fn
$ cd /tmp
$ ls -la
total 14
drwxrwxrwt   3 bin    bin     512 Oct 11 13:59 .
drwxr-xr-x  18 root   wheel   512 Oct  6 21:43 ..
-rw-rw----   1 major  bin    1610 Oct 11 13:59 resend.815.in
-rw-rw----   1 major  bin    1622 Oct 11 13:59 resend.815.out
drwxrwxrwx   3 fn     bin     512 Oct 11 10:17 screens
$ set -o emacs
$ alias foo=oof
$ foo
oof: not found
$ fc r
fc: history pattern not found: r
$ exit
[status 2]
;

from the ports area, you can pick up ksh, zsh, bash, tcsh, rc and es (the
latter two from the plan9/ ports section).

i have found ksh and rc to be the shells that use the least resources on
my machine (i've compiled them staticly, and, in the case of rc, with
editline).


faried.