summaryrefslogtreecommitdiff
path: root/lisp/shell.el
diff options
context:
space:
mode:
authorSimon Marshall <simon@gnu.org>1995-03-02 08:59:07 +0000
committerSimon Marshall <simon@gnu.org>1995-03-02 08:59:07 +0000
commitb7e97ed5040d01cc08fe9361072e60d8a220ed54 (patch)
tree48254e1f47ced3e5ab73ba73291bc35a6caa7b77 /lisp/shell.el
parenta96e9ed73e093b1f6b6b55050b15ddf7601462ae (diff)
downloademacs-b7e97ed5040d01cc08fe9361072e60d8a220ed54.tar.gz
Make sure shell-cd sets list-buffers-directory to a directory ending with `/'.
Diffstat (limited to 'lisp/shell.el')
-rw-r--r--lisp/shell.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/shell.el b/lisp/shell.el
index ba87a0f8ba4..9f07194d305 100644
--- a/lisp/shell.el
+++ b/lisp/shell.el
@@ -549,7 +549,9 @@ Environment variables are expanded, see function `substitute-in-file-name'."
(defun shell-cd (dir)
"Do normal `cd' to DIR, and set `list-buffers-directory'."
- (if shell-dirtrackp (setq list-buffers-directory (expand-file-name dir)))
+ (if shell-dirtrackp
+ (setq list-buffers-directory (file-name-as-directory
+ (expand-file-name dir))))
(cd dir))
(defun shell-resync-dirs ()