aboutsummaryrefslogtreecommitdiffstats
path: root/builtins/getopt.c
diff options
context:
space:
mode:
Diffstat (limited to 'builtins/getopt.c')
-rw-r--r--builtins/getopt.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/builtins/getopt.c b/builtins/getopt.c
index 2fbcac7..ff44340 100644
--- a/builtins/getopt.c
+++ b/builtins/getopt.c
@@ -232,6 +232,19 @@ sh_getopt_restore_state (argv)
nextchar = argv[sh_curopt] + sh_charindex;
}
+#if 0
+void
+sh_getopt_debug_restore_state (argv)
+ char **argv;
+{
+ if (nextchar && nextchar != argv[sh_curopt] + sh_charindex)
+ {
+ itrace("sh_getopt_debug_restore_state: resetting nextchar");
+ nextchar = argv[sh_curopt] + sh_charindex;
+ }
+}
+#endif
+
#ifdef TEST
/* Compile with -DTEST to make an executable for use in testing