From owner-svn-src-all@freebsd.org Fri Jan 25 01:36:18 2019 Return-Path: Delivered-To: svn-src-all@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 5317F14C6819; Fri, 25 Jan 2019 01:36:18 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Received: from smtp-out-so.shaw.ca (smtp-out-so.shaw.ca [64.59.136.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "Client", Issuer "CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 8580091872; Fri, 25 Jan 2019 01:36:17 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Received: from spqr.komquats.com ([70.67.125.17]) by shaw.ca with ESMTPA id mqPkgbMn5nBo4mqPlgxmcJ; Thu, 24 Jan 2019 18:36:15 -0700 X-Authority-Analysis: v=2.3 cv=J8fUEzvS c=1 sm=1 tr=0 a=VFtTW3WuZNDh6VkGe7fA3g==:117 a=VFtTW3WuZNDh6VkGe7fA3g==:17 a=IkcTkHD0fZMA:10 a=xqWC_Br6kY4A:10 a=3JhidrIBZZsA:10 a=6I5d2MoRAAAA:8 a=YxBL1-UpAAAA:8 a=FR35MORUfq6qWSmt_NgA:9 a=QEXdDO2ut3YA:10 a=IjZwj45LgO3ly-622nXo:22 a=Ia-lj3WSrqcvXOmTRaiG:22 Received: from [IPv6:2605:8d80:401:1152:25e8:5ff:bcad:3987] (unknown [72.143.221.163]) by spqr.komquats.com (Postfix) with ESMTPSA id 3FA8F97B; Thu, 24 Jan 2019 17:36:46 -0800 (PST) Date: Thu, 24 Jan 2019 17:35:42 -0800 User-Agent: K-9 Mail for Android In-Reply-To: <5bf59c74ab2bfaf831811df273ae1adde1599acc.camel@freebsd.org> References: <201901242355.x0ONt4Xl085460@pdx.rh.CN85.dnsmgr.net> <5bf59c74ab2bfaf831811df273ae1adde1599acc.camel@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: svn commit: r343416 - head/bin/sh To: Ian Lepore , rgrimes@freebsd.org, Edward Tomasz Napierala CC: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org From: Cy Schubert Message-ID: <18A9C567-56ED-45A5-93A7-5863C541C82B@cschubert.com> X-CMAE-Envelope: MS4wfFQhp2tOoNHUnX+JpjCjhCo3gHhpwGw/229CyEQNlG3PFKUGk6IzSK8oopHpx2XNbR5L0mEm3uJSq/lLqJqCmqz+xwCq9YhmVZ1+ENR0oklanMadO5ot W2T2sQAgaZwZpNSrR6Bdqz3+o5ECCEl3vkUBo4kE5/++p/mK/JsnyJBR/0K40jciAXYN3YeBoLqjME4xGKqejN0GZ5S/ecdmI64VGfrbxmlcSqlZDtY0FlEy +7CNABbqc/mA8FBIFR4z+YHrUnpAxEedgYOUHaoPmZckv2rCRbD/Xg/x34VzXhcYZ/RxrHvGfGWRjcrCHspZGyHoTsA5hPQBJPWlCfDHgUSZpOVObJGJu2tL WTeP7Afr X-Rspamd-Queue-Id: 8580091872 X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-6.99 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; REPLY(-4.00)[]; NEURAL_HAM_SHORT(-0.99)[-0.989,0] X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Jan 2019 01:36:18 -0000 On January 24, 2019 3:59:40 PM PST, Ian Lepore wrote: >On Thu, 2019-01-24 at 15:55 -0800, Rodney W=2E Grimes wrote: >> > Author: trasz >> > Date: Thu Jan 24 23:34:51 2019 >> > New Revision: 343416 >> > URL: https://svnweb=2Efreebsd=2Eorg/changeset/base/343416 >> >=20 >> > Log: >> > Install =2Eshrc for root, and set PS1 for the toor account=2E >>=20 >> And a dozen other aliases :-( >> Please do not contaiminate the prestine environment with >> personal preferences=2E In the start of the project we >> did a great deal of work to remove and eliminate these >> types of things, only the few csh aliases where retained=2E >>=20 >> This is really the domain of a systems administrator to >> decide and making work for them to clean this out is >> not going to make them happy=2E >>=20 >> The commands in an ENV file well be executed by >> every single shell that is started, not just an >> interactive shell, unless I am mis reading the >> man page: >> If the environment variable ENV is set on >> entry to a shell, or is set in the =2Eprofile of a login shell, the >> shell >> then subjects its value to parameter expansion and arithmetic >> expansion >> and reads commands from the named file=2E >> =20 > >I agree with all of tat=2E If the local sysadmin wants to make /bin/sh >friendly as an interactive shell, maybe we could provide some =2Esample >files to make that easy, but we SHOULD NOT put all this junk in by >default=2E > >-- Ian > >> > Reviewed by: jilles >> > MFC after: 2 weeks >> > Sponsored by: DARPA, AFRL >> > Differential Revision: https://reviews=2Efreebsd=2Eorg/D18872 >> >=20 >> > Added: >> > head/bin/sh/dot=2Eshrc >> > - copied unchanged from r343399, head/share/skel/dot=2Eshrc >> > Modified: >> > head/bin/sh/Makefile >> > head/bin/sh/dot=2Eprofile >> >=20 >> > Modified: head/bin/sh/Makefile >> > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >> > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >> > --- head/bin/sh/Makefile Thu Jan 24 22:34:30 2019 (r343415) >> > +++ head/bin/sh/Makefile Thu Jan 24 23:34:51 2019 (r343416) >> > @@ -3,9 +3,12 @@ >> > =20 >> > =2Einclude >> > =20 >> > -CONFS=3D dot=2Eprofile profile >> > -CONFSDIR_dot=2Eprofile=3D /root >> > -CONFSNAME_dot=2Eprofile=3D =2Eprofile >> > +CONFGROUPS=3D ETC ROOT >> > +ETC=3D profile >> > +ROOT=3D dot=2Eshrc dot=2Eprofile >> > +ROOTDIR=3D /root >> > +ROOTNAME_dot=2Eshrc=3D =2Eshrc >> > +ROOTNAME_dot=2Eprofile=3D =2Eprofile >> > PACKAGE=3Druntime >> > PROG=3D sh >> > INSTALLFLAGS=3D -S >> >=20 >> > Modified: head/bin/sh/dot=2Eprofile >> > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >> > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >> > --- head/bin/sh/dot=2Eprofile Thu Jan 24 22:34:30 2019 (r343415) >> > +++ head/bin/sh/dot=2Eprofile Thu Jan 24 23:34:51 2019 (r343416) >> > @@ -9,6 +9,9 @@ export TERM >> > PAGER=3Dless >> > export PAGER >> > =20 >> > +# set ENV to a file invoked each time sh is started for >> > interactive use=2E >> > +ENV=3D$HOME/=2Eshrc; export ENV >> > + >> > # Query terminal size; useful for serial lines=2E >> > if [ -x /usr/bin/resizewin ] ; then /usr/bin/resizewin -z ; fi >> > =20 >> >=20 >> > Copied: head/bin/sh/dot=2Eshrc (from r343399, >> > head/share/skel/dot=2Eshrc) >> > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >> > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >> > --- /dev/null 00:00:00 1970 (empty, because file is >> > newly added) >> > +++ head/bin/sh/dot=2Eshrc Thu Jan 24 23:34:51 2019 (r343416, >> > copy of r343399, head/share/skel/dot=2Eshrc) >> > @@ -0,0 +1,39 @@ >> > +# $FreeBSD$ >> > +# >> > +# =2Eshrc - bourne shell startup file=20 >> > +# >> > +# This file will be used if the shell is invoked for interactive >> > use and >> > +# the environment variable ENV is set to this file=2E >> > +# >> > +# see also sh(1), environ(7)=2E >> > +# >> > + >> > + >> > +# file permissions: rwxr-xr-x >> > +# >> > +# umask 022 >> > + >> > +# Uncomment this to enable the builtin vi(1) command line editor >> > in sh(1), >> > +# e=2Eg=2E ESC to go into visual mode=2E >> > +# set -o vi >> > + >> > + >> > +# some useful aliases >> > +alias h=3D'fc -l' >> > +alias j=3Djobs >> > +alias m=3D"$PAGER" >> > +alias ll=3D'ls -laFo' >> > +alias l=3D'ls -l' >> > +alias g=3D'egrep -i' >> > +=20 >> > +# # be paranoid >> > +# alias cp=3D'cp -ip' >> > +# alias mv=3D'mv -i' >> > +# alias rm=3D'rm -i' >> > + >> > + >> > +# set prompt: ``username@hostname:directory $ ''=20 >> > +PS1=3D"\u@\h:\w \\$ " >> > + >> > +# search path for cd(1) >> > +# CDPATH=3D:$HOME >> >=20 >> >=20 >>=20 >>=20 Agreed re samples though a comment in the default should point the user to= samples=2E Samples could also include some nifty tricks too, some of which= are in fortune or Power Tools=2E --=20 Pardon the typos and autocorrect, small keyboard in use=2E Cheers, Cy Schubert FreeBSD UNIX: Web: http://www=2EFreeBSD=2Eorg The need of the many outweighs the greed of the few=2E