*BSD News Article 52432


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.rmit.EDU.AU!goanna.cs.rmit.EDU.AU!munnari.oz.au!hpg30a.csc.cuhk.hk!cuhknntp!news.uoregon.edu!usenet.eel.ufl.edu!news.mathworks.com!newshost.marcam.com!usc!howland.reston.ans.net!Germany.EU.net!Dortmund.Germany.EU.net!nntp.gmd.de!stern.fokus.gmd.de!zib-berlin.de!irz401!uriah.heep!not-for-mail
From: j@uriah.heep.sax.de (J Wunsch)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: sh history?
Date: 10 Oct 1995 23:17:31 +0100
Organization: Private FreeBSD site, Dresden.
Lines: 47
Message-ID: <45erdr$5n1@uriah.heep.sax.de>
References: <imgidataDG01B3.Ex7@netcom.com> <45cdmn$i9@tui.pinnacle.co.nz>
NNTP-Posting-Host: uriah.heep.sax.de
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit

Jonathan Chen <jonc@pinnacle.co.nz> wrote:

>>I'm using sh (I've not had a chance to install another one), ...

>Plain "sh" is minimal. No history, command line expansion, programmable
>commands, aliases etc.

Sheesh!  Do you actually verify your assumptions before posting? I'm
not sure what you mean with "programmable commands", but perhaps
simple shell functions?  Ok, except of file name expansion, you can
get everything else with a plain /bin/sh:


j@uriah 98% sh
$ ls
env                             nouucico
esrv0-uriah.heep.sax.de         ps2term
esrv107-uriah.heep.sax.de       rrn.5530
...
$ alias ls="ls -F"
$ ls
env                             nouucico
esrv0-uriah.heep.sax.de=        ps2term/
esrv107-uriah.heep.sax.de=      rrn.5530
...
$ set -o emacs
$ ls		## i've actually hit the up arrow key twice here!
env                             nouucico
esrv0-uriah.heep.sax.de=        ps2term/
esrv107-uriah.heep.sax.de=      rrn.5530
...
$ unalias ls
$ ls ()
> {
> echo *
> }
$ ls
env esrv0-uriah.heep.sax.de esrv107-uriah.heep.sax.de est.4501 et\
c.tar log_mg.cuaa1 mcom mmc-r01.ps nouucico ps2term rrn.5530 rrna\
ct.5530 sys_i386_isa uu xxx
$ ^D
j@uriah 99% 
-- 
cheers, J"org

joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)