Put in i to getopt, so i will work...
diff --git a/sh.c b/sh.c
index 4b1ae6d..07715d4 100644
--- a/sh.c
+++ b/sh.c
@@ -1490,7 +1490,7 @@
 		  }
 	}
 
-	while ((opt = getopt(argc_l, argv_l, "cx")) > 0) {
+	while ((opt = getopt(argc_l, argv_l, "cxi")) > 0) {
 		switch (opt) {
 			case 'c':
 				input = NULL;