From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#24471: 25.1.50; Error on empty PATH component Date: Mon, 17 Oct 2016 21:53:48 +0300 Message-ID: <83oa2iyfgj.fsf@gnu.org> 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> <87zim2q1se.fsf@Rainer.invalid> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1476732637 759 195.159.176.226 (17 Oct 2016 19:30:37 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 17 Oct 2016 19:30:37 +0000 (UTC) Cc: 24471@debbugs.gnu.org To: Achim Gratz Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Oct 17 21:30:33 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 1bwDcF-0007o0-HE for geb-bug-gnu-emacs@m.gmane.org; Mon, 17 Oct 2016 21:30:31 +0200 Original-Received: from localhost ([::1]:35375 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bwDcH-0002OF-Kw for geb-bug-gnu-emacs@m.gmane.org; Mon, 17 Oct 2016 15:30:33 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42940) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bwD3z-0005X9-DJ for bug-gnu-emacs@gnu.org; Mon, 17 Oct 2016 14:55:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bwD3u-0006gK-OQ for bug-gnu-emacs@gnu.org; Mon, 17 Oct 2016 14:55:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:59082) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1bwD3u-0006gF-Kj for bug-gnu-emacs@gnu.org; Mon, 17 Oct 2016 14:55:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bwD3u-0002cf-9v for bug-gnu-emacs@gnu.org; Mon, 17 Oct 2016 14:55:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 17 Oct 2016 18:55:02 +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 Original-Received: via spool by 24471-submit@debbugs.gnu.org id=B24471.147673044910013 (code B ref 24471); Mon, 17 Oct 2016 18:55:02 +0000 Original-Received: (at 24471) by debbugs.gnu.org; 17 Oct 2016 18:54:09 +0000 Original-Received: from localhost ([127.0.0.1]:37039 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bwD33-0002bR-FE for submit@debbugs.gnu.org; Mon, 17 Oct 2016 14:54:09 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:51669) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bwD32-0002bE-3F for 24471@debbugs.gnu.org; Mon, 17 Oct 2016 14:54:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bwD2t-0006Gu-Kf for 24471@debbugs.gnu.org; Mon, 17 Oct 2016 14:54:02 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:48228) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bwD2t-0006Go-HR; Mon, 17 Oct 2016 14:53:59 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1889 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bwD2s-0007vM-6c; Mon, 17 Oct 2016 14:53:59 -0400 In-reply-to: <87zim2q1se.fsf@Rainer.invalid> (message from Achim Gratz on Mon, 17 Oct 2016 20:16:17 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:124600 Archived-At: > From: Achim Gratz > Date: Mon, 17 Oct 2016 20:16:17 +0200 > > 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. I think you are wrong, because you don't realize what is Emacs's interpretation of "." in exec-path. The interpretation is exactly default-directory, AFAIR. And that is TRT, because Emacs interprets "." and default-directory as being local to each buffer. IOW, conceptually, when you switch to another buffer, you effectively chdir into its default-directory. Bottom line, "legacy feature" aside, I think converting an empty PATH element to "." in exec-path conforms to POSIX, and therefore there's no issue here left after Glenn pushed his changes.