Subject: Re: bug#12351: 24.1; parse-colon-path turns empty paths into nil

From: Andreas Schwab <[email-masked]>
Date: Sun, 30 Dec 2012 23:08:08 +0100

Dave Abrahams <[email-masked]> writes:

> The following function is buggy because of the original bug:
>
> (defun osx-plist-update-exec-path ()
>   "Update `exec-path' from the PATH environment variable."
>   (let ((path (getenv "PATH")))
>     (mapc (lambda (dir)
>             (add-to-list 'exec-path dir))
>           (parse-colon-path path)))
>   exec-path)

In which way is this buggy, apart from the fact that it reverses the
path (which has nothing to do with the behaviour of parse-colon-path)?

Andreas.

-- 
Andreas Schwab, [email-masked]
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."