This is the mail archive of the
mailing list for the Cygwin project.
default shell for unknown users
- From: Andy Koppe <andy dot koppe at gmail dot com>
- To: cygwin-developers at cygwin dot com
- Date: Mon, 7 Jun 2010 06:57:04 +0100
- Subject: default shell for unknown users
The pwdgrp::read_passwd function in passwd.cc automatically generates
an entry in the passwd cache when the current user doesn't have a
/etc/passwd entry. That entry has /bin/sh as its default shell.
Could this be changed to /bin/bash, for consistency with setup.exe,
which uses /bin/bash when creating passwd entries for local users, and
cygwin.bat, which directly invokes /bin/bash?
The reason I'm asking is that a user without a passwd entry who
invokes cygwin.bat gets /bin/bash with the full prompt and so on,
whereas invoking 'mintty -' (or 'rxvt -ls' or similar) yields /bin/sh
with just the dollar as a prompt and various sh compatibility