diff --git a/bin/sh/input.c b/bin/sh/input.c index c97c49665a93..f709b8c0218b 100644 --- a/bin/sh/input.c +++ b/bin/sh/input.c @@ -118,9 +118,9 @@ INIT { } RESET { + popallfiles(); if (exception != EXSHELLPROC) parselleft = parsenleft = 0; /* clear input buffer */ - popallfiles(); } SHELLPROC {