Subject: bug#31924: 27.0.50; tramp handler /sudo::FILE fails when /bin/sh points to zsh

From: Eli Zaretskii <[email-masked]>
Date: Mon, 25 Jun 2018 18:22:08 +0300

> From: Tino Calancha <[email-masked]>
> Date: Mon, 25 Jun 2018 10:36:39 +0900
> Cc: [email-masked], [email-masked]
> 
> --- a/lisp/net/tramp-sh.el
> +++ b/lisp/net/tramp-sh.el
> @@ -550,7 +550,9 @@ tramp-remote-process-environment
>    :type '(repeat string))
>  
>  ;;;###tramp-autoload
> -(defcustom tramp-sh-extra-args '(("/bash\\'" . "-norc -noprofile"))
> +(defcustom tramp-sh-extra-args
> +  '(("/bash\\'" . "-norc -noprofile")
> +    ("/zsh\\'" . "--no-promptcr"))

If you change the default value of a defcustom, please update its
:version tag.

Thanks.