Put in i to getopt, so i will work...
authorEric Andersen <andersen@codepoet.org>
Fri, 8 Dec 2000 20:50:30 +0000 (20:50 -0000)
committerEric Andersen <andersen@codepoet.org>
Fri, 8 Dec 2000 20:50:30 +0000 (20:50 -0000)
lash.c
sh.c
shell/lash.c

diff --git a/lash.c b/lash.c
index 4b1ae6d..07715d4 100644 (file)
--- a/lash.c
+++ b/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;
diff --git a/sh.c b/sh.c
index 4b1ae6d..07715d4 100644 (file)
--- a/sh.c
+++ b/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;
index 4b1ae6d..07715d4 100644 (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;