This is the mail archive of the cygwin-developers mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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
restrictions.

Andy


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]