In article <[email protected]>,
Robert Elz <[email protected]> wrote:
> Date: Sun, 15 Nov 2015 18:57:50 +0100
> From: Nicolas Joly <[email protected]>
> Message-ID: <[email protected]>
>
>
> | In the last case, when _exit(2) is called, getprogname report strange
> | '-sh' instead of expected 'csh'.
>
>Having the first char of a shell become '-' is an ancient (and most
>likely no longer relevant) convention that indicates a login shell
>(initially, one started from getty, but now just about anything.)
Well, ps "knows" about it:
http://nxr.netbsd.org/xref/src/bin/ps/print.c#205
But this is not the login -<shellname> case, since the "csh -c" is not
a login command.
christos