[Message Prev][Message Next][Thread Prev][Thread Next][Message Index][Thread Index]
Re: Shell mode doesn't read .bash_histry
- X-ml-count: 3583
- Subject: Re: Shell mode doesn't read .bash_histry
- From: 小関 吉則 (KOSEKI Yoshinori) <kose@xxxxxxxxxxx>
- Date: Wed, 25 Apr 2001 00:42:17 +0900 (JST)
- User-agent: T-gnus/6.15.2 (based on Oort Gnus v0.02) SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.3 Emacs/20.7 (i386-*-windows98.1998) MULE/4.1 (葵) Meadow/1.14.2pre1 (AWSAKA:62)
反応が鈍くてすみません。
Meadow の CVS 上では bash の“.exe” を削りました。次回
リリースには反映されます。
>>>>> In [meadow-users-jp : No.3544]
>>>>> “水口” = Motohiko Minakuchi <zxcv@xxxxxxxxxxxxxxx> wrote:
水口> Win98SE 上の Meadow1.14 の shell mode で bash を使用していますが、
水口> .emacs で
水口> > (setq explicit-shell-file-name "bash.exe")
水口> とすると M-p (comint-previous-input) が ~/.bash_histry を読んでくれず、
水口> shell-mode 起動前のコマンド履歴が使えません。
水口> ~/.bash_histry の代りに ~/.histry を読もうとしている様なので、
水口> > HISTFILE=~/.bash_history
水口> という環境変数を定義すれば解決しました。
lisp/shell.el 中で、
: (defun shell-mode ()
: :
: (setq comint-input-ring-file-name
: (or (getenv "HISTFILE")
: (cond ((string-equal shell "bash") "~/.bash_history")
: ((string-equal shell "ksh") "~/.sh_history")
: (t "~/.history"))))
となっているのを知らなかったんです。だから .exe を付けました。
水口> 一方、
水口> > (setq explicit-shell-file-name "bash")
水口> ならば HISTFILE 変数無でも問題は起りません。
これは上記のように "bash" と比較しているからですね。
水口> 問題の起る方のコーディングは Meadow1.14 の配布物である dot.emacs.ja 中
水口> でコメントになっていたものから転記したものですが、.exe は付けた方が良
水口> いのでしょうか?
水口> PATH上に bash.bat というファイルが無いなら大丈夫ですか?
そういう気持(心配)があって .exe を付けたんだったような...
ありがとうございました。
ついでに sh.exe の “.exe”も取りました。
tcsh の方は tcsh.exe のままですが、これはあってもなくても変
りませんか?
--
こせき @ Emacs のページ作成中
http://www.NetLaputa.ne.jp/~kose/Emacs/
kose@xxxxxxxxxxxxxxxxxx