|
From: | Kim F. Storm |
Subject: | Re: Bug in shell.el: explicit-bash-args does not work for bash 1.x |
Date: | 01 Nov 2002 01:38:56 +0100 |
User-agent: | Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 |
address@hidden (Kim F. Storm) writes: > The following code returns the proper setting for bash 1.x and 2.x. > > I suppose it could be used as the initial value for explicit-bash-args. > > > (let* ((prog (or (and (boundp 'explicit-shell-file-name) > explicit-shell-file-name) > (getenv "ESHELL") shell-file-name)) > (name (file-name-nondirectory prog))) > (if (and (equal name "bash") > (file-executable-p prog) > (string-match "bad option" > (shell-command-to-string (concat prog " > --noediting")))) > '("-i") > '("--noediting" "-i"))) > I added a check for (not purify-flag) to the above and installed it. It works nicely on my GNU/Linux platforms (mixture of Bash 1.x and 2.x). -- Kim F. Storm <address@hidden> http://www.cua.dk
[Prev in Thread] | Current Thread | [Next in Thread] |