From owner-svn-src-all@freebsd.org Fri Jan 11 19:53:36 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 0831D149B0F7; Fri, 11 Jan 2019 19:53:36 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Received: from smtp-out-no.shaw.ca (smtp-out-no.shaw.ca [64.59.134.13]) (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 37F2583F99; Fri, 11 Jan 2019 19:53:35 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Received: from spqr.komquats.com ([70.67.125.17]) by shaw.ca with ESMTPA id i2rvgetrl8uQmi2rwg4L8F; Fri, 11 Jan 2019 12:53:28 -0700 X-Authority-Analysis: v=2.3 cv=XKpOtjpE c=1 sm=1 tr=0 a=VFtTW3WuZNDh6VkGe7fA3g==:117 a=VFtTW3WuZNDh6VkGe7fA3g==:17 a=IkcTkHD0fZMA:10 a=3JhidrIBZZsA:10 a=6I5d2MoRAAAA:8 a=iKhvJSA4AAAA:8 a=YxBL1-UpAAAA:8 a=xTbO7UhYVR1jueeSt2gA:9 a=QEXdDO2ut3YA:10 a=IjZwj45LgO3ly-622nXo:22 a=odh9cflL3HIXMm4fY7Wr:22 a=Ia-lj3WSrqcvXOmTRaiG:22 Received: from android-68f84e02b5988183.esitwifi.local (S0106788a207e2972.gv.shawcable.net [70.66.154.233]) by spqr.komquats.com (Postfix) with ESMTPSA id 08450C81; Fri, 11 Jan 2019 11:53:28 -0800 (PST) Date: Fri, 11 Jan 2019 11:53:04 -0800 User-Agent: K-9 Mail for Android In-Reply-To: References: <201901111835.x0BIZQZI022410@pdx.rh.CN85.dnsmgr.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: svn commit: r342881 - head/share/skel To: Ian Lepore ,rgrimes@freebsd.org CC: Edward Napierala , src-committers , svn-src-all@freebsd.org, svn-src-head@freebsd.org From: Cy Schubert Message-ID: <287FC341-A997-48FF-B600-61B3EF23D471@cschubert.com> X-CMAE-Envelope: MS4wfMRDn9WrXqwtxyKyLHR2mxekYNQcJWv1wLhZczyrxiTKSyXmcfR9PZcNnI88C3n9uz0JuaE0Wt0gQ338rLZDw1MlaXDCUKCt4CjQLwREtIOEQsceC1fn pYMIDSagIa1RUA2YSpnpqIdPrpkirCB399FGd4kvLIzMT2VZVgora8wI/bKrISjw4/+kL9ZEIc0/AXRUZcQ+dtcE4+oj+jKN+BQQQ62wpPSyR/Ig75kzkSnX MTECPUzdLGcGGQzWgjT+936zeZorl9GH/Ae8CeL7PSaq3MS+H2+UQzTlhsJyo0W4UdG8XJyE0zwlzjQgu2rnWZf2fkWzRPLdj2WYygW4pRGLCStJX6fZ9sHc ho/c3UQt X-Rspamd-Queue-Id: 37F2583F99 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.992,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, 11 Jan 2019 19:53:36 -0000 On January 11, 2019 11:38:14 AM PST, Ian Lepore wrote: >On Fri, 2019-01-11 at 10:35 -0800, Rodney W=2E Grimes wrote: >> > On Wed, 2019-01-09 at 10:08 -0800, Rodney W=2E Grimes wrote: >> > > > ?r=2E, 9 sty 2019 o 16:41 Rodney W=2E Grimes >> > > > napisa?(a): >> > > > >=20 >> > > > > > Author: trasz >> > > > > > Date: Wed Jan 9 11:04:27 2019 >> > > > > > New Revision: 342881 >> > > > > > URL: https://svnweb=2Efreebsd=2Eorg/changeset/base/342881 >> > > > > >=20 >> > > > > > Log: >> > > > > > Make sh(1) recognize the default $HOME=2E By default /home >> > > > > > is a symlink; without this change, when you log in, sh(1) >> > > > > > won't realize the current directory (eg '/usr/home/test') >> > > > > > is the same as $HOME ('/home/test')=2E >> > > > >=20 >> > > > > Arguably it shouldnt know any of that=2E >> > > >=20 >> > > > sh(1) needs to know that in order to properly shorten the >> > > > current >> > > > directory path (in prompt) to "~" when you're there=2E >> > >=20 >> > > And imho it should not be doing that=2E=2E=2E=2E >> > > that is what leads to all this other un needed cruft=2E >> > >=20 >> > > ~ is a human input shortcut, not a computer output shortcut >> > >=20 >> > > >=20 >> > > > > Or that $Home is ~ either >> > > > > I hate that if I "cd home" and there is not a directory >> > > > > where I am at called home it takes me to ~/$home,s >> > > > > that also has caused a few script debugging to be >> > > > > a royal Pita having to force =2E/$variable to stop >> > > > > home from being treated special=2E >> > > >=20 >> > > > But none of that seems related to the change above, does it? >> > >=20 >> > > It is all related as this is outgrowth of trying to make >> > > the prompt spit out ~ when you are in $HOME=2E >> > >=20 >> > > > All the patch does is: if your current directory is $HOME, but >> > > > it's spelled differently, run "cd"=2E The only thing that does, >> > > > in >> > > > turn, >> > > > is making sh(1) set the $ENV variable, which it uses to track >> > > > the current "logical working directory", eg /home/test=2E It >> > > > cannot >> > > > obtain that information otherwise, because getcwd(3) in that >> > > > directory returns its "physical path", eg /usr/home/test=2E >> > >=20 >> > > It SHOULD spit out the results of getcwd and not some >> > > logical interpretation of variables=2E Do any OTHER cd's >> > > through a symbolic link do such magic? >> > >=20 >> >=20 >> > ALL cd's through a symlink "do such magic"=2E It's the difference >> > between >> > physical and logical path in bourne shell (and its descendents)=2E >> >=20 >> > revolution > mkdir /tmp/ian >> > revolution > cd /tmp/ian >> >=20 >> > revolution > mkdir -p a/b/c >> > revolution > ln -s a/b/c c >> >=20 >> > revolution > cd /tmp/ian/a/b/c; pwd -L; pwd -P >> > /tmp/ian/a/b/c >> > /tmp/ian/a/b/c >> >=20 >> > revolution > cd /tmp/ian/c; pwd -L; pwd -P >> > /tmp/ian/c >> > /tmp/ian/a/b/c >> >=20 >> > revolution > cd /tmp/ian/a/b/c; cd =2E=2E; pwd -P >> > /tmp/ian/a/b >> >=20 >> > revolution > cd /tmp/ian/c; cd =2E=2E; pwd -P >> > /tmp/ian >>=20 >> The whole concept of logical cd/pwd is broken >> because it only works with cd, if you start >> to do ls and other commands the consistency >> of things like =2E=2E goes out the window! >>=20 >>=20 > >What you seem to be implying is some kind of bug is what I consider to >be one of the strongest features of logical vs=2E physical paths in >bourne shell=2E Those of us who use it understand its behavior and work >with it instead of complaining about it=2E People who believe otherwise >tend to use other shells, I suspect=2E Everybody wins=2E > >-- Ian Not just our Bourne shell IIRC Solaris and others as well=2E One should compare this with the folks maintaining ksh93 at att/ast on git= hub=2E=20 --=20 Pardon the typos, 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