Function: shell-prefixed-directory-name
shell-prefixed-directory-name is a byte-compiled function defined in
shell.el.gz.
Signature
(shell-prefixed-directory-name DIR)
Source Code
;; Defined in /usr/src/emacs/lisp/shell.el.gz
;; Return DIR prefixed with comint-file-name-prefix as appropriate.
(defun shell-prefixed-directory-name (dir)
(if (= (length comint-file-name-prefix) 0)
dir
(if (file-name-absolute-p dir)
;; The name is absolute, so prepend the prefix.
(concat comint-file-name-prefix (file-local-name dir))
;; For relative name we assume default-directory already has the prefix.
(expand-file-name dir))))