From owner-freebsd-hackers@FreeBSD.ORG Sun Dec 15 16:34:23 2013 Return-Path: Delivered-To: hackers@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D12381C4 for ; Sun, 15 Dec 2013 16:34:23 +0000 (UTC) Received: from mho-02-ewr.mailhop.org (mho-02-ewr.mailhop.org [204.13.248.72]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id A4BD01FF6 for ; Sun, 15 Dec 2013 16:34:23 +0000 (UTC) Received: from c-24-8-230-52.hsd1.co.comcast.net ([24.8.230.52] helo=damnhippie.dyndns.org) by mho-02-ewr.mailhop.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1VsEe0-000JY9-GM; Sun, 15 Dec 2013 16:34:16 +0000 Received: from [172.22.42.240] (revolution.hippie.lan [172.22.42.240]) by damnhippie.dyndns.org (8.14.3/8.14.3) with ESMTP id rBFGYDZT034275; Sun, 15 Dec 2013 09:34:13 -0700 (MST) (envelope-from ian@FreeBSD.org) X-Mail-Handler: Dyn Standard SMTP by Dyn X-Originating-IP: 24.8.230.52 X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/sendlabs/outbound_abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX18paunHcxMD63zH6/nsyucW Subject: Re: Interactive /bin/sh From: Ian Lepore To: rank1seeker@gmail.com In-Reply-To: <20131215.105840.948.1@DOMY-PC> References: <20131215.105840.948.1@DOMY-PC> Content-Type: text/plain; charset="us-ascii" Date: Sun, 15 Dec 2013 09:34:13 -0700 Message-ID: <1387125253.1177.2.camel@revolution.hippie.lan> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Cc: hackers@FreeBSD.org X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Dec 2013 16:34:23 -0000 On Sun, 2013-12-15 at 11:58 +0100, rank1seeker@gmail.com wrote: > I'm just a step away from making it a default shell for a root. > > What is missing is: > -- > command completion (it has only path completion) > > history doesn't work the way I would like it to. > With UP/DOWN arrow keys, I can navigate through history, SEQUENTIALLY. > Like in [t]csh -> I would like to type first few letters and then with UP/DOWN arrow keys, navigate through history of CMDs, which starts with typed string. > > If just those 2 features would be implemented, I would be completely into /bin/sh An alternate viewpoint: I would prefer that /bin/sh remain as lean and mean as possible, conforming to posix and especially NOT becoming bloated with interactive usability stuff. If you want a user-friendly bourne shell and can afford the memory and cycle bloat, use bash. Please keep /bin/sh lightweight for embedded and dedicated-purpose systems that need a posix-conforming shell without a ton of overhead. -- Ian