From owner-freebsd-arch@FreeBSD.ORG Sun Jun 20 09:09:06 2010 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 883BE1065670 for ; Sun, 20 Jun 2010 09:09:06 +0000 (UTC) (envelope-from yanegomi@gmail.com) Received: from mail-iw0-f182.google.com (mail-iw0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 4DB138FC14 for ; Sun, 20 Jun 2010 09:09:05 +0000 (UTC) Received: by iwn7 with SMTP id 7so3137524iwn.13 for ; Sun, 20 Jun 2010 02:09:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type; bh=i0GUMC79cG2NHq1XUScn3lrQR7csT3sKOCn3DozloiY=; b=JRnGd9H3Gbgp0xw6J5RAgTuCkCoq11mU6EcRun2k0l4PEEVwzW6W5rSOtjDAahXYkC OVn1IWDdaEWYj04bcb97y1aNbmXqDb9gaEZqfFsjFuE8l0jb+KfEhp3qQBqydYVOQFr6 dBSkcHTFOqrLagpBSlIo9dgirsI4E2w7doDfo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; b=O4eNHn49yF1Qdv5Mxk/fjaYiemabfPyc1ACDyZP78/ALH5e+8MSVZaSkn9d1T56HdS SuU8aQ02wvX6fXpVAdNcou+es0tAWjmtEU7RgOOO1Qv6XRl7mnGVoGiZ8MO5ee18Qh+t JZUYFt2Z+BwG1QpmC8dG6SwOP+qdfSD6m+KNg= MIME-Version: 1.0 Received: by 10.231.155.3 with SMTP id q3mr3875294ibw.20.1277024937943; Sun, 20 Jun 2010 02:08:57 -0700 (PDT) Sender: yanegomi@gmail.com Received: by 10.231.117.201 with HTTP; Sun, 20 Jun 2010 02:08:57 -0700 (PDT) In-Reply-To: <20100620090019.GA1731@mole.fafoe.narf.at> References: <20100619113126.GB83874@stack.nl> <20100620090019.GA1731@mole.fafoe.narf.at> Date: Sun, 20 Jun 2010 02:08:57 -0700 X-Google-Sender-Auth: pVf-muWxigGmALWp2KTH4O4gSZI Message-ID: From: Garrett Cooper To: Stefan Farfeleder Content-Type: text/plain; charset=ISO-8859-1 Cc: Jilles Tjoelker , freebsd-arch@freebsd.org Subject: Re: Further sh(1) plans X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Jun 2010 09:09:06 -0000 On Sun, Jun 20, 2010 at 2:00 AM, Stefan Farfeleder wrote: > On Sat, Jun 19, 2010 at 01:31:26PM +0200, Jilles Tjoelker wrote: >> >> For embedded systems, it may be best to disable libedit entirely in the >> end product (we don't currently have a knob for this). If you need to >> log in to such a system, the additions will likely be useful, as there >> may not be any other shell on the system. The completion code is fairly >> small compared to the rest of libedit. > > Maybe we could compile two sh binaries, an interactive one with all the > fancy features enabled (filename completion, history editing, mail > checking etc.) and a simple one only for scripting? > I don't know if it makes a real difference though. Something I thought about too as this would increase the size of /rescue/sh as it's statically linked (or at least the copy of /rescue/sh should be compiled without libedit support). It would increase the runtime size and startup time for /bin/sh, but the text sections should be shared and thus the overhead should be minimized for dynamic copies of /bin/sh . Thanks, -Garrett