Commit aad65192 authored by Glenn Morris's avatar Glenn Morris
Browse files

* lisp/shell.el (shell-mode) <shell-dirstack-query>: Bypass bash aliases.

parent 74fde0f4
2014-05-22 Glenn Morris <rgm@gnu.org>
* shell.el (shell-mode) <shell-dirstack-query>: Bypass bash aliases.
2014-05-21 Daniel Colascione <dancol@dancol.org>
 
* files.el (interpreter-mode-alist): Add mksh.
......
;;; shell.el --- specialized comint.el for running the shell -*- lexical-binding: t -*-
;; Copyright (C) 1988, 1993-1997, 2000-2014 Free Software Foundation,
;; Inc.
;; Copyright (C) 1988, 1993-1997, 2000-2014 Free Software Foundation, Inc.
;; Author: Olin Shivers <shivers@cs.cmu.edu>
;; Simon Marshall <simon@gnu.org>
......@@ -584,6 +583,8 @@ buffer."
(setq shell-dirstack-query
(cond ((string-equal shell "sh") "pwd")
((string-equal shell "ksh") "echo $PWD ~-")
;; Bypass any aliases. TODO all shells could use this.
((string-equal shell "bash") "command dirs")
(t "dirs")))
;; Bypass a bug in certain versions of bash.
(when (string-equal shell "bash")
......
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