Function: tramp-get-sh-extra-args

tramp-get-sh-extra-args is a byte-compiled function defined in tramp-sh.el.gz.

Signature

(tramp-get-sh-extra-args SHELL)

Documentation

Find extra args for SHELL.

Source Code

;; Defined in /usr/src/emacs/lisp/net/tramp-sh.el.gz
(defun tramp-get-sh-extra-args (shell)
  "Find extra args for SHELL."
  (let ((alist tramp-sh-extra-args)
	item extra-args)
    (while (and alist (null extra-args))
      (setq item (pop alist))
      (when (string-match-p (car item) shell)
	(setq extra-args (cdr item))))
    extra-args))