[cs631apue] Get path to currently running executable

Jan Schaumann jschauma at stevens.edu
Fri Dec 14 20:51:23 EST 2018


Keyur M Ved <kved at stevens.edu> wrote:
 
> The only other way I can think of is to resolve argv[0], but that
> isn't always the correct executable name (as we saw in class).

You may use a hardcoded string here to identify your shell.

-Jan


More information about the cs631apue mailing list