diff options
Diffstat (limited to 'shell/bbsh.c')
-rw-r--r-- | shell/bbsh.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/bbsh.c b/shell/bbsh.c index 897c022..ad875ab 100644 --- a/shell/bbsh.c +++ b/shell/bbsh.c @@ -212,7 +212,7 @@ int bbsh_main(int argc, char **argv) unsigned cmdlen=0; for (;;) { if (!f) putchar('$'); - if (1 > getline(&command, &cmdlen,f ? : stdin)) break; + if (1 > getline(&command, &cmdlen, f ? f : stdin)) break; handle(command); } |