diff options
Diffstat (limited to 'toys/toysh.c')
-rw-r--r-- | toys/toysh.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/toysh.c b/toys/toysh.c index 23b88c3d..365c47fc 100644 --- a/toys/toysh.c +++ b/toys/toysh.c @@ -372,7 +372,7 @@ void toysh_main(void) for (;;) { char *command = 0; if (!f) xputc('$'); - if (1 > getline(&command, &cmdlen, f ? : stdin)) break; + if (1 > getline(&command, &cmdlen, f ? f : stdin)) break; handle(command); free(command); } |