diff options
Diffstat (limited to 'term-utils/script.c')
| -rw-r--r-- | term-utils/script.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/term-utils/script.c b/term-utils/script.c index ff7f4409f6..4e302347f2 100644 --- a/term-utils/script.c +++ b/term-utils/script.c @@ -70,6 +70,7 @@ #include "signames.h" #include "pty-session.h" #include "debug.h" +#include "shells.h" static UL_DEBUG_DEFINE_MASK(script); UL_DEBUG_DEFINE_MASKNAMES(script) = UL_DEBUG_EMPTY_MASKNAMES; @@ -966,9 +967,7 @@ int main(int argc, char **argv) log_associate(&ctl, &ctl.in, timingfile, format); } - shell = getenv("SHELL"); - if (!shell) - shell = _PATH_BSHELL; + shell = ul_default_shell(0, NULL); ctl.pty = ul_new_pty(ctl.isterm); if (!ctl.pty) |
