From owner-svn-src-all@freebsd.org Wed Jan 9 18:55:48 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 CC3E1148AC08 for ; Wed, 9 Jan 2019 18:55:48 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from outbound1.eu.mailhop.org (outbound1.eu.mailhop.org [52.28.251.132]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3B31A6F58C for ; Wed, 9 Jan 2019 18:55:48 +0000 (UTC) (envelope-from ian@freebsd.org) ARC-Seal: i=1; a=rsa-sha256; t=1547060138; cv=none; d=outbound.mailhop.org; s=arc-outbound20181012; b=G2XPb+sKpAWXaoRLZLW0JK11OaQ8A2nx8bAfvWBQMuCD+UGFV3ftrFCwVWnzIWV4eLew2vKAP0S1C 8RQ/BIFpymoLsepg3xwiTd7DhIPi8mgmQbosd8H12rFAQ+00O1AzblfdACDKCo/3RSItsCzhZjXDvX tB5KG7/OtAiGr9eydog/DITzgYvIpkDtCPCKrNegrEgb3XGXdZc+D06ZJCEjdwYJaxzFVMx2iDwNQ1 u1rr8XJmvyBfjwYSkXJD8niWNZyNj2X6WrcOf+15IlEG1uCXvl+O8TPJ3MUk4IckBu2IhEwK/AiwYz gJ9H2lK+UhJEAHVeKfZEsDu9qpKUBpg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=outbound.mailhop.org; s=arc-outbound20181012; h=content-transfer-encoding:mime-version:content-type:references:in-reply-to: date:cc:to:from:subject:message-id:dkim-signature:from; bh=cW006eDID+90p5Ft56Oygzu5F3esxAsMplRatGWdt0Y=; b=iixnA2UD3rg5wuomrKMTyWc4SeNljqbpTVSEc/TdOEaUlM6Dv/NxJX3Mpze6RUS5AiC3B496Ua5zY J5U7NAu306zV8iYJ1nCNXN0yw2rgLlNN4UL4BBhsVKRUzvRdAMviHPM5rMXK/sepI0CZjBymm1ujZV ImQvnigGaitd930CqliBNoArONi/j+4raBDaJbkPU/O2VaT1/V3Ua55iW6D9xJnIEJAgpMBEnD7Yxr L+pqvEzTRAvcl7sjYDW+KtBC24J08g9jVbB0W1HUbLSyCUGUOnrzyfxuODaKFSwcn9Sjk4SDogfPTI Jm8EAlKMlnl0PuOAFCErjBUikhO4ohQ== ARC-Authentication-Results: i=1; outbound3.eu.mailhop.org; spf=softfail smtp.mailfrom=freebsd.org smtp.remote-ip=67.177.211.60; dmarc=none header.from=freebsd.org; arc=none header.oldest-pass=0; DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outbound.mailhop.org; s=dkim-high; h=content-transfer-encoding:mime-version:content-type:references:in-reply-to: date:cc:to:from:subject:message-id:from; bh=cW006eDID+90p5Ft56Oygzu5F3esxAsMplRatGWdt0Y=; b=duZsAf4aj1gpZTG7V4jjyiYsaNVmAChYLWJTGfYob5UbhoYPOEGt1VG8V4xlvjWr6kzI1Q0eIvZw5 DDT31lV5wR7diqIm6N0bod+CyoyLc+t7FkBWw3ren4suxYsAvxqfcOfBDm2LhdWDvM1pTmR1J5xj8E SLAZQCRBFqBcL/+XZ8N5L07aMbptuxJ+8CvkvfZt/lxhNCj3y051lnfNflvS6ouCrSx7FQG325dla1 QTyVBFXkYVwvbtxNLoyPgSLMDWRf1JKBhpnRFQ+PQ7o5muCB1i3Mi4HnLHbhRMl9CQQ4AY03QHBIyF qfwzi2lrXh07h0UbLeT7uJBF4tZMJmw== X-MHO-RoutePath: aGlwcGll X-MHO-User: 24e7eb6b-1440-11e9-8a28-a1efd8da9a94 X-Report-Abuse-To: https://support.duocircle.com/support/solutions/articles/5000540958-duocircle-standard-smtp-abuse-information X-Originating-IP: 67.177.211.60 X-Mail-Handler: DuoCircle Outbound SMTP Received: from ilsoft.org (unknown [67.177.211.60]) by outbound3.eu.mailhop.org (Halon) with ESMTPSA id 24e7eb6b-1440-11e9-8a28-a1efd8da9a94; Wed, 09 Jan 2019 18:55:35 +0000 (UTC) Received: from rev (rev [172.22.42.240]) by ilsoft.org (8.15.2/8.15.2) with ESMTP id x09ItXT3056348; Wed, 9 Jan 2019 11:55:33 -0700 (MST) (envelope-from ian@freebsd.org) Message-ID: <8065ff94389d86d5c427e5cca14af3a37311fa0e.camel@freebsd.org> Subject: Re: svn commit: r342881 - head/share/skel From: Ian Lepore To: rgrimes@freebsd.org, Edward Napierala Cc: src-committers , svn-src-all@freebsd.org, svn-src-head@freebsd.org Date: Wed, 09 Jan 2019 11:55:33 -0700 In-Reply-To: <201901091808.x09I81S1009440@pdx.rh.CN85.dnsmgr.net> References: <201901091808.x09I81S1009440@pdx.rh.CN85.dnsmgr.net> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5 FreeBSD GNOME Team Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 3B31A6F58C X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-6.98 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; NEURAL_HAM_SHORT(-0.98)[-0.985,0]; REPLY(-4.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,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: Wed, 09 Jan 2019 18:55:49 -0000 On Wed, 2019-01-09 at 10:08 -0800, Rodney W. Grimes wrote: > > ?r., 9 sty 2019 o 16:41 Rodney W. Grimes > > napisa?(a): > > > > > > > Author: trasz > > > > Date: Wed Jan 9 11:04:27 2019 > > > > New Revision: 342881 > > > > URL: https://svnweb.freebsd.org/changeset/base/342881 > > > > > > > > Log: > > > > Make sh(1) recognize the default $HOME. 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'). > > > > > > Arguably it shouldnt know any of that. > > > > sh(1) needs to know that in order to properly shorten the current > > directory path (in prompt) to "~" when you're there. > > And imho it should not be doing that.... > that is what leads to all this other un needed cruft. > > ~ is a human input shortcut, not a computer output shortcut > > > > > > 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 ./$variable to stop > > > home from being treated special. > > > > But none of that seems related to the change above, does it? > > It is all related as this is outgrowth of trying to make > the prompt spit out ~ when you are in $HOME. > > > All the patch does is: if your current directory is $HOME, but > > it's spelled differently, run "cd". 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. It cannot > > obtain that information otherwise, because getcwd(3) in that > > directory returns its "physical path", eg /usr/home/test. > > It SHOULD spit out the results of getcwd and not some > logical interpretation of variables. Do any OTHER cd's > through a symbolic link do such magic? > ALL cd's through a symlink "do such magic". It's the difference between physical and logical path in bourne shell (and its descendents). revolution > mkdir /tmp/ian revolution > cd /tmp/ian revolution > mkdir -p a/b/c revolution > ln -s a/b/c c revolution > cd /tmp/ian/a/b/c; pwd -L; pwd -P /tmp/ian/a/b/c /tmp/ian/a/b/c revolution > cd /tmp/ian/c; pwd -L; pwd -P /tmp/ian/c /tmp/ian/a/b/c revolution > cd /tmp/ian/a/b/c; cd ..; pwd -P /tmp/ian/a/b revolution > cd /tmp/ian/c; cd ..; pwd -P /tmp/ian -- Ian