From owner-freebsd-arch@freebsd.org Sat Jan 26 14:06:36 2019 Return-Path: Delivered-To: freebsd-arch@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C12EA14C44B3 for ; Sat, 26 Jan 2019 14:06:36 +0000 (UTC) (envelope-from etnapierala@gmail.com) Received: from mail-wr1-x42b.google.com (mail-wr1-x42b.google.com [IPv6:2a00:1450:4864:20::42b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 9A23C847F2; Sat, 26 Jan 2019 14:06:35 +0000 (UTC) (envelope-from etnapierala@gmail.com) Received: by mail-wr1-x42b.google.com with SMTP id t27so13095480wra.6; Sat, 26 Jan 2019 06:06:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:mail-followup-to :references:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=pF0Uz8rchcZnPHajIoAZJABWa6f2ArYArQGuBAwAd2M=; b=jBy/1FEeKniPkImhz8Ggqmyis30lQKuuEJn2RVFIvQ9Ns8TNn1iyjPH3D6/axob8S7 m8TbDjrdr41qOmsww4gVAjVWYtLLSLAwbAW74PovTW56/3asZjlhgsqmL6vTkblsgV5R /vcHW2PRLK6vgSVAWKYemyHTkyLaMmtfa0L273ZrTafYd0M94mP3WS1QaannvZMfN6Wo lDEHk0ifNs4UCbDzg6+aurRE+tZs5JmyDgzJYAOx//4cudCZCCKHPjjrWp/0Ym/My1E3 K8cNmE1gnTmkmNZP4voPJPQHeFDe26qf1YQX+NxGUhacMsiofoSd7fzKryTo8uAtRr/s N6ew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=pF0Uz8rchcZnPHajIoAZJABWa6f2ArYArQGuBAwAd2M=; b=OCC+YQudbBMNfSE4f9LP9tw6NBiMR1x7lQd0ToIMU0B43kw1yFKwooQ9GVBsUN2ofV Hh2k2o+QKZfvPWg6XvdurRlV96M2D458+76RyCUYMoZqIE9b24KNqr6warvg11CAxKMx 09nO0p2NIDaIwt3slc5yS3RwNGpoZ7drYhnM9BCc8har9LQF3EOXk6SZ3BrR4gqr8ng6 dNVK88MA1YUikYX9kd1vzMi/VmIUCCMYhh7PWQxuPxfnPN1v/JkcmtDjbz5X6WQshrSW 5XUMGZLOTc9V1pm2VDmxiMFVvfMaekuT2Mx5BHwHpNo+thaTM8h51tkJIWpGUY9Js21r 1qTA== X-Gm-Message-State: AJcUukcXxsszunpXLOGl6Nm/iYd7eLSy/gakX+fd8Ci8UzvohKuqVowV kZ99huAZTAZp2K3osHrdNrcshEMJ X-Google-Smtp-Source: ALg8bN594TonK2UF4+GCQDjcceHZtxTTBKzR/vcSypjn17uR9kU5ZDIwkV4CIcMZ9mnhUrnRG+BOrA== X-Received: by 2002:a5d:480d:: with SMTP id l13mr16147310wrq.175.1548511594186; Sat, 26 Jan 2019 06:06:34 -0800 (PST) Received: from v2 (cpc92302-cmbg19-2-0-cust461.5-4.cable.virginm.net. [82.1.209.206]) by smtp.gmail.com with ESMTPSA id v133sm56450312wmf.19.2019.01.26.06.06.32 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 26 Jan 2019 06:06:33 -0800 (PST) Sender: =?UTF-8?Q?Edward_Tomasz_Napiera=C5=82a?= Date: Sat, 26 Jan 2019 14:04:48 +0000 From: Edward Tomasz =?utf-8?Q?Napiera=C5=82a?= To: Matthew Seaman Cc: freebsd-arch@freebsd.org Subject: Re: Importing mksh in base Message-ID: <20190126140448.GA28402@v2> Mail-Followup-To: Matthew Seaman , freebsd-arch@freebsd.org References: <20190125165751.kpcjjncmf7j7maxd@ivaldir.net> <7c863100-0b5c-368e-e433-9caaf32e98d0@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <7c863100-0b5c-368e-e433-9caaf32e98d0@FreeBSD.org> User-Agent: Mutt/1.11.2 (2019-01-07) X-Rspamd-Queue-Id: 9A23C847F2 X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=jBy/1FEe; spf=pass (mx1.freebsd.org: domain of etnapierala@gmail.com designates 2a00:1450:4864:20::42b as permitted sender) smtp.mailfrom=etnapierala@gmail.com X-Spamd-Result: default: False [-5.15 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; DMARC_NA(0.00)[freebsd.org]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCVD_COUNT_THREE(0.00)[3]; IP_SCORE(-2.73)[ip: (-9.39), ipnet: 2a00:1450::/32(-2.25), asn: 15169(-1.93), country: US(-0.08)]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[b.2.4.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.5.4.1.0.0.a.2.list.dnswl.org : 127.0.5.0]; MX_GOOD(-0.01)[cached: alt3.gmail-smtp-in.l.google.com]; NEURAL_HAM_SHORT(-0.71)[-0.715,0]; FORGED_SENDER(0.30)[trasz@freebsd.org,etnapierala@gmail.com]; MIME_TRACE(0.00)[0:+]; MID_RHS_NOT_FQDN(0.50)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; FROM_NEQ_ENVFROM(0.00)[trasz@freebsd.org,etnapierala@gmail.com] X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Jan 2019 14:06:37 -0000 On 0126T1138, Matthew Seaman wrote: > On 25/01/2019 19:10, Eric van Gyzen wrote: > > Ditto, except only 2 years on Linux before coming to FreeBSD. I > > tried tcsh, since it was the default and in base, but I hated it for > > interactive use. Notably absent are one-line “for" loops. On new > > installs, after networking is up, my very first command is “pkg > > install bash [and others]”. > I have the opposite experience. I use tcsh as my interactive shell, > mostly because I've used it for a long time and my fingers remember the > command sequences. If I'm using bash interactively I tend to get > frustrated by not being able to type 'foop' to replay the last > command starting 'foo'. Yes, I know about r but it just isn't the > same. > > If it's for programming though, it's straight to /bin/sh -- and I will > admit to dropping into sh to write for-loops at the command prompt. > > I'd be happy enough to see the default root shell changed to mksh. I'd > be pretty happy to see the root shell switched to our current /bin/sh > for that matter. Actually, what advantages does mksh have over /bin/sh? I don't know mksh all that well, but two obvious areas where sh(1) could be improved for interactive use are: 1. It does support history, but it doesn't support loading it from disk, nor writing it on exit. I have a half-baked patch that adds it, if anyone's interested. 2. The tab completion works fine for paths, but not for commands. So, for example if you type 'camc', it won't get completed, while 'vi /etc/rc.c' will work.