Put in i to getopt, so i will work...

This commit is contained in:
Eric Andersen 2000-12-08 20:50:30 +00:00
parent eb4218d0a4
commit f21aa84389
3 changed files with 3 additions and 3 deletions

2
lash.c
View File

@ -1490,7 +1490,7 @@ int shell_main(int argc_l, char **argv_l)
}
}
while ((opt = getopt(argc_l, argv_l, "cx")) > 0) {
while ((opt = getopt(argc_l, argv_l, "cxi")) > 0) {
switch (opt) {
case 'c':
input = NULL;

2
sh.c
View File

@ -1490,7 +1490,7 @@ int shell_main(int argc_l, char **argv_l)
}
}
while ((opt = getopt(argc_l, argv_l, "cx")) > 0) {
while ((opt = getopt(argc_l, argv_l, "cxi")) > 0) {
switch (opt) {
case 'c':
input = NULL;

View File

@ -1490,7 +1490,7 @@ int shell_main(int argc_l, char **argv_l)
}
}
while ((opt = getopt(argc_l, argv_l, "cx")) > 0) {
while ((opt = getopt(argc_l, argv_l, "cxi")) > 0) {
switch (opt) {
case 'c':
input = NULL;