From owner-freebsd-questions Tue Apr 30 02:45:04 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id CAA24061 for questions-outgoing; Tue, 30 Apr 1996 02:45:04 -0700 (PDT) Received: from mail.EUnet.hu (mail.eunet.hu [193.225.28.100]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id CAA24021 for ; Tue, 30 Apr 1996 02:44:59 -0700 (PDT) Received: by mail.EUnet.hu, id LAA13728; Tue, 30 Apr 1996 11:44:47 +0200 Received: by CoDe.CoDe.hu (KAA01979); Tue, 30 Apr 1996 10:23:49 GMT From: Gabor Zahemszky Message-Id: <199604301023.KAA01979@CoDe.CoDe.hu> Subject: Re: memory usage for a shell To: luigi@labinfo.iet.unipi.it (Luigi Rizzo) Date: Tue, 30 Apr 1996 10:23:49 +0000 (GMT) Cc: freebsd-questions@freebsd.org In-Reply-To: <199604291925.VAA05980@labinfo.iet.unipi.it> from "Luigi Rizzo" at Apr 29, 96 09:25:47 pm X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > > 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 -:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:- Earth is the cradle of human sense, but you can't stay in the cradle forever. Tsiolkovsky