Variable: sh-ancestor-alist

sh-ancestor-alist is a customizable variable defined in sh-script.el.gz.

Value

((ash . sh) (bash . jsh) (bash2 . jsh) (dash . ash) (dtksh . ksh)
 (es . rc) (itcsh . tcsh) (jcsh . csh) (jsh . sh) (ksh . ksh88)
 (ksh88 . jsh) (oash . sh) (pdksh . ksh88) (mksh . pdksh) (posix . sh)
 (tcsh . csh) (wksh . ksh88) (wsh . sh) (zsh . ksh88) (rpm . sh))

Documentation

Alist showing the direct ancestor of various shells.

This is the basis for sh-feature. See also sh-alias-alist. By default we have the following three hierarchies:

csh C Shell
  jcsh C Shell with Job Control
  tcsh TENEX C Shell
    itcsh Ian's TENEX C Shell
rc Plan 9 Shell
  es Extensible Shell
sh Bourne Shell
  ash Almquist Shell
    dash Debian Almquist Shell
  jsh Bourne Shell with Job Control
    bash GNU Bourne Again Shell
    ksh88 Korn Shell '88
      ksh Korn Shell '93
dtksh CDE Desktop Korn Shell
      pdksh Public Domain Korn Shell
        mksh MirOS BSD Korn Shell
      wksh Window Korn Shell
      zsh Z Shell
  oash SCO OA (curses) Shell
  posix IEEE 1003.2 Shell Standard
  wsh ? Shell

This variable was added, or its default value changed, in Emacs 24.4.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/sh-script.el.gz
(defcustom sh-ancestor-alist
  '((ash . sh)
    (bash . jsh)
    (bash2 . jsh)
    (dash . ash)
    (dtksh . ksh)
    (es . rc)
    (itcsh . tcsh)
    (jcsh . csh)
    (jsh . sh)
    (ksh . ksh88)
    (ksh88 . jsh)
    (oash . sh)
    (pdksh . ksh88)
    (mksh . pdksh)
    (posix . sh)
    (tcsh . csh)
    (wksh . ksh88)
    (wsh . sh)
    (zsh . ksh88)
    (rpm . sh))
  "Alist showing the direct ancestor of various shells.
This is the basis for `sh-feature'.  See also `sh-alias-alist'.
By default we have the following three hierarchies:

csh		C Shell
  jcsh		C Shell with Job Control
  tcsh		TENEX C Shell
    itcsh	Ian's TENEX C Shell
rc		Plan 9 Shell
  es		Extensible Shell
sh		Bourne Shell
  ash		Almquist Shell
    dash	Debian Almquist Shell
  jsh		Bourne Shell with Job Control
    bash	GNU Bourne Again Shell
    ksh88	Korn Shell '88
      ksh	Korn Shell '93
	dtksh	CDE Desktop Korn Shell
      pdksh	Public Domain Korn Shell
        mksh    MirOS BSD Korn Shell
      wksh	Window Korn Shell
      zsh	Z Shell
  oash		SCO OA (curses) Shell
  posix		IEEE 1003.2 Shell Standard
  wsh		? Shell"
  :type '(repeat (cons symbol symbol))
  :version "24.4"                       ; added dash
  :group 'sh-script)