>From experimenting, I've found out that bash (4.2.20), when invoked
as "sh", doesn't reset the effective user id to the real user id,
even if called *without* the '-p' option.
This behaviour seems consistent with that of other POSIX shells like
dash (0.5.7) and ksh (JM 93u+ 2012-02-29), so I believe bash is
correct here.
However, I couldn't find mention of such behaviour in the manual,
which is rather confusing.
Am I missing something, or have I found a bug in the manual?
Regards,
Stefano