summaryrefslogtreecommitdiff
path: root/usr.bin/osh/osh.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/osh/osh.c')
-rw-r--r--usr.bin/osh/osh.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/usr.bin/osh/osh.c b/usr.bin/osh/osh.c
index 04705f7..aa8ef27 100644
--- a/usr.bin/osh/osh.c
+++ b/usr.bin/osh/osh.c
@@ -356,6 +356,9 @@ open_script(const char *pathname)
buf[buf_i] = '\0';
argc = parse_args(buf, argv, sizeof(argv));
command_match(buf, argc, argv, true);
+
+ argv[0] = NULL;
+ argv[1] = NULL;
buf_i = 0;
continue;
}