0

How can I get Cygwin to honor the /etc/passwd file and make my default shell bash instead of sh?

I presume it is controlled somehow by windows XP since I had an issue before with permissions and had to regenerate the /etc/passwd file after updating permissions on Win XP for my user id.

WilliamKF
  • 8,058

1 Answers1

1

Try putting this code in your ~/.emacs startup file (and restarting Emacs):

(setq shell-file-name "bash"
      explicit-shell-file-name "bash")

You could also temporarilly rename /bin/sh to /bin/sh.hold to be absolutely certain whether Emacs is invoking /bin/sh or /bin/bash. Keep in mind that in certain cases (see the Bash man page) Bash will behave as sh depending on how it is invoked (e.g., if argv[0] is "sh").

Fran
  • 5,511