Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Apr 1996 10:23:49 +0000 (GMT)
From:      Gabor Zahemszky <zgabor@CoDe.hu>
To:        luigi@labinfo.iet.unipi.it (Luigi Rizzo)
Cc:        freebsd-questions@freebsd.org
Subject:   Re: memory usage for a shell
Message-ID:  <199604301023.KAA01979@CoDe.CoDe.hu>
In-Reply-To: <199604291925.VAA05980@labinfo.iet.unipi.it> from "Luigi Rizzo" at Apr 29, 96 09:25:47 pm

next in thread | previous in thread | raw e-mail | index | archive | help
> 
> I am looking for a shell which is less memory-hungry than tcsh,
> but possibly has some of its facilities such as line editing, history and
> file-name completion. Any suggestion ?
> 
> [To those who ask why: try running tcsh and enjoy its RSS
> at or above 1MB while you run your "ls" or similar stuff!]

Hi!

1) Use the /bin/sh (the ash), which has line-editing (enabled by set -o vi,
or set -o emacs) and history mechanism.  I don't know anything about
file-name completion, it doesn't do that the others (ksh,pdksh,bash,tcsh)
does.  If you can find a newer doc, than is in the installation, maybe
it says something (please, send it me, too!)
2) Use the pdksh from the ports collection, or get it from
ftp.cs.mun.ca:/pub/pdksh with the patches, it knows all the things (set -o
emacs/set -o vi)
3) Get the real (AT&T) ksh (12/28/93d).  If you use 2.1R, get the Linux
version, and the Linux-emu, if you use newer FBSD, maybe you can use the
BSDI version, too (it's a BSDI 2.x file, so FBSD 2.1R cannot run it).
It has all of the required functions, but you have to make some
configuration (read the man, and look into the KEYBD trap! - or the Korn book).
Or, if you have it, use an older (from 88) version, and read the manual about
the emacs-mode, and the various _X, __Y aliases to use line-editing.
4) Use bash.  It's not a real alternativa, 'cause it's very memory-hungry.

Most of it can use your cursor keys in emacs mode (except ksh.att v93
without much configuration, and ksh.att v88 without some configuration)

-- 
	Gabor Zahemszky <zgabor@CoDe.hu>

-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-
Earth is the cradle of human sense, but you can't stay in the cradle forever.
						Tsiolkovsky



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199604301023.KAA01979>