Function: shell-process-cd

shell-process-cd is a byte-compiled function defined in shell.el.gz.

Signature

(shell-process-cd ARG)

Source Code

;; Defined in /usr/src/emacs/lisp/shell.el.gz
;; cd [dir]
(defun shell-process-cd (arg)
  (let ((new-dir (cond ((zerop (length arg)) (concat comint-file-name-prefix
						     "~"))
		       ((string-equal "-" arg) shell-last-dir)
		       (t (shell-prefixed-directory-name arg)))))
    (setq shell-last-dir default-directory)
    (shell-cd new-dir)
    (shell-dirstack-message)))