unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#13296: 24.2.91; Interpretation of Null CDPATH components is wrong.
@ 2012-12-28 20:12 Charles Rendleman
  2012-12-30 18:47 ` Glenn Morris
  0 siblings, 1 reply; 3+ messages in thread
From: Charles Rendleman @ 2012-12-28 20:12 UTC (permalink / raw)
  To: 13296

[-- Attachment #1: Type: text/plain, Size: 475 bytes --]

How to demonstrate the bug:
$ cd ~
$ /bin/pwd
/u/home
$ mkdir -p this/is/a/test
$ export CDPATH=:~
$ cd this/is/a/test
$ emacs -Q
launch 'eshell'
prompt should read "~/this/is/test $"
type "cd .." at the prompt.
prompt reads "/u $".and /bin/pwd results in "/u"

This is interpretation of CDPATH is not the same as that of BASH or of  of
EMACS prior to 24.2.91 that both treat NULL components of the colon
separated list of values as ".".  See, bash(1) discussions of CDPATH.

[-- Attachment #2: Type: text/html, Size: 729 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#13296: 24.2.91; Interpretation of Null CDPATH components is wrong.
  2012-12-28 20:12 bug#13296: 24.2.91; Interpretation of Null CDPATH components is wrong Charles Rendleman
@ 2012-12-30 18:47 ` Glenn Morris
  2012-12-31 21:20   ` Glenn Morris
  0 siblings, 1 reply; 3+ messages in thread
From: Glenn Morris @ 2012-12-30 18:47 UTC (permalink / raw)
  To: Charles Rendleman; +Cc: 13296

Charles Rendleman wrote:

> $ export CDPATH=:~
[...]
> This is interpretation of CDPATH is not the same as that of BASH or of  of
> EMACS prior to 24.2.91 that both treat NULL components of the colon
> separated list of values as ".".  See, bash(1) discussions of CDPATH.

This is due to the changes in http://debbugs.gnu.org/12351 .

Before:

(parse-colon-path ":~")    ->  (nil "~/")

After:

(parse-colon-path ":~")    -> ("~/")


We shouldn't be deleting nil from the result.





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#13296: 24.2.91; Interpretation of Null CDPATH components is wrong.
  2012-12-30 18:47 ` Glenn Morris
@ 2012-12-31 21:20   ` Glenn Morris
  0 siblings, 0 replies; 3+ messages in thread
From: Glenn Morris @ 2012-12-31 21:20 UTC (permalink / raw)
  To: 13296-done

Version: 24.2.92

Fixed in emacs-24 branch.





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-12-31 21:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-12-28 20:12 bug#13296: 24.2.91; Interpretation of Null CDPATH components is wrong Charles Rendleman
2012-12-30 18:47 ` Glenn Morris
2012-12-31 21:20   ` Glenn Morris

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).