Commit 1347899b authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(comint-exec-1): Make sure default-directory is a real dir.

parent 55928174
......@@ -580,7 +580,11 @@ buffer. The hook `comint-exec-hook' is run after each exec."
(format "COLUMNS=%d" (frame-width)))
(list "EMACS=t" "TERM=emacs"
(format "TERMCAP=emacs:co#%d:tc=unknown" (frame-width))))
process-environment)))
process-environment))
(default-directory
(if (file-directory-p default-directory)
default-directory
"/")))
(apply 'start-process name buffer command switches)))
;;; Input history processing in a buffer
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment