From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Achim Gratz Newsgroups: gmane.emacs.bugs Subject: bug#24471: 25.1.50; Error on empty PATH component Date: Mon, 17 Oct 2016 20:16:17 +0200 Organization: Linux Private Site Message-ID: <87zim2q1se.fsf@Rainer.invalid> References: <83intrhfc7.fsf@gnu.org> <87ponzlnep.fsf@Rainer.invalid> <87h99blg8d.fsf@Rainer.invalid> <87d1jv7p1r.fsf@Rainer.invalid> <83eg4benr2.fsf@gnu.org> <874m4bq6xe.fsf@Rainer.invalid> <83shruyj1q.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1476729561 29408 195.159.176.226 (17 Oct 2016 18:39:21 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 17 Oct 2016 18:39:21 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) To: 24471@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Oct 17 20:39:15 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bwCoL-0004hR-9B for geb-bug-gnu-emacs@m.gmane.org; Mon, 17 Oct 2016 20:38:57 +0200 Original-Received: from localhost ([::1]:35043 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bwCoN-0007x1-Bb for geb-bug-gnu-emacs@m.gmane.org; Mon, 17 Oct 2016 14:38:59 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:32855) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bwCU8-0006jR-NU for bug-gnu-emacs@gnu.org; Mon, 17 Oct 2016 14:18:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bwCU6-0001ku-29 for bug-gnu-emacs@gnu.org; Mon, 17 Oct 2016 14:18:04 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:59067) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1bwCU5-0001kp-VF for bug-gnu-emacs@gnu.org; Mon, 17 Oct 2016 14:18:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bwCU5-0001kk-Qb for bug-gnu-emacs@gnu.org; Mon, 17 Oct 2016 14:18:01 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <87ponzlnep.fsf@Rainer.invalid> Resent-From: Achim Gratz Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 17 Oct 2016 18:18:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24471 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.14767282346670 (code B ref -1); Mon, 17 Oct 2016 18:18:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 17 Oct 2016 18:17:14 +0000 Original-Received: from localhost ([127.0.0.1]:37024 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bwCTK-0001jV-8v for submit@debbugs.gnu.org; Mon, 17 Oct 2016 14:17:14 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:41808) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bwCTI-0001jI-JM for submit@debbugs.gnu.org; Mon, 17 Oct 2016 14:17:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bwCTC-0001TL-AD for submit@debbugs.gnu.org; Mon, 17 Oct 2016 14:17:07 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:51969) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1bwCTC-0001TH-7J for submit@debbugs.gnu.org; Mon, 17 Oct 2016 14:17:06 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:32768) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bwCTA-0005vD-VV for bug-gnu-emacs@gnu.org; Mon, 17 Oct 2016 14:17:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bwCT8-0001RB-Bj for bug-gnu-emacs@gnu.org; Mon, 17 Oct 2016 14:17:04 -0400 Original-Received: from [195.159.176.226] (port=52255 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1bwCT8-0001Qn-5z for bug-gnu-emacs@gnu.org; Mon, 17 Oct 2016 14:17:02 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1bwCSd-0001nn-Uz for bug-gnu-emacs@gnu.org; Mon, 17 Oct 2016 20:16:31 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 34 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:/XXAKUACzKFekfkOPjtenCsq1ps= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:124599 Archived-At: Eli Zaretskii writes: > You must re-dump Emacs for this to take effect. Ah, OK. I had hoped that re-loading the changed files would do it, but no dice. > Anyway, the change that was committed is different, so the above is no > longer pertinent. > > (I don't think I understand what you meant by your comment about "nil > meaning default-directory being wrong for PATH and POSIX".) POSIX specifically prescribes that an empty PATH element equals "." and declares that a legacy feature that strictly conforming applications shall not use, but in other environment variables an empty path element is also allowed and replaced by different defaults. For NLSPATH that default is %N and for MANPATH it usually means some system-defined (POSIX doesn't mention that possibility). Whether default-directory equates "." seems to depend on when it gets evaluated, since it's normally set to some absolute path. So a textual replacement with "." seems more correct than some hand-waving about nil representing current-directory in the case of PATH. OTOH, if other environment variables are intended to get processed by parse-colon-path, then that replacement would need to be different for each such variable. Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ Factory and User Sound Singles for Waldorf Q+, Q and microQ: http://Synth.Stromeko.net/Downloads.html#WaldorfSounds