cooperの日記: eshell-2.4.2
日記 by
cooper
eshell で cygwin の autoconf が動かーん!!! ということで、ちょっと Hack してみた。なんのことはない、esh-ext.el をちょびっと変えたら OK だった。
@@ -258,7 +258,7 @@
(file-regular-p file))
(with-temp-buffer
(insert-file-contents-literally file nil 0 maxlen)
- (if (looking-at "#!\\([^ \t\n]+\\)\\([ \t]+\\(.+\\)\\)?")
+ (if (looking-at "#![ ]*\\([^ \t\n]+\\)\\([ \t]+\\(.+\\)\\)?")
(if (match-string 3)
(list (match-string 1)
(match-string 3)
もちろん、これも必要。
(setq eshell-force-execution t)
(setq eshell-interpreter-alist
'(("/bin/sh" . "G:/bin/sh.exe")))
幸せ。とりあえず、John にも patch を mail した。
@@ -258,7 +258,7 @@
(file-regular-p file))
(with-temp-buffer
(insert-file-contents-literally file nil 0 maxlen)
- (if (looking-at "#!\\([^ \t\n]+\\)\\([ \t]+\\(.+\\)\\)?")
+ (if (looking-at "#![ ]*\\([^ \t\n]+\\)\\([ \t]+\\(.+\\)\\)?")
(if (match-string 3)
(list (match-string 1)
(match-string 3)
もちろん、これも必要。
(setq eshell-force-execution t)
(setq eshell-interpreter-alist
'(("/bin/sh" . "G:/bin/sh.exe")))
幸せ。とりあえず、John にも patch を mail した。