Current-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: csh & getprogname small issue
In article <21420.1447613998%andromeda.noi.kre.to@localhost>,
Robert Elz <kre%munnari.OZ.AU@localhost> wrote:
> Date: Sun, 15 Nov 2015 18:57:50 +0100
> From: Nicolas Joly <njoly%pasteur.fr@localhost>
> Message-ID: <20151115175750.GA10949%issan.sis.pasteur.fr@localhost>
>
>
> | 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
Home |
Main Index |
Thread Index |
Old Index