Put in i to getopt, so i will work...
This commit is contained in:
parent
eb4218d0a4
commit
f21aa84389
2
lash.c
2
lash.c
@ -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
2
sh.c
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user