2 * Copyright 2011, Denys Vlasenko
4 * Licensed under GPLv2, see file LICENSE in this source tree.
7 //kbuild:lib-y += get_shell_name.o
11 const char* FAST_FUNC
get_shell_name(void)
16 shell
= getenv("SHELL");
17 if (shell
&& shell
[0])
20 pw
= getpwuid(getuid());
21 if (pw
&& pw
->pw_shell
&& pw
->pw_shell
[0])