shopt -s compat42 seems to actually set compat41, also leading
shopt to report that both compat 41 and 42 are on.

Thanks,
Ondrej
diff --git a/builtins/shopt.def b/builtins/shopt.def
index 55d4543..80e257d 100644
--- a/builtins/shopt.def
+++ b/builtins/shopt.def
@@ -160,7 +160,7 @@ static struct {
   { "compat32", &shopt_compat32, set_compatibility_level },
   { "compat40", &shopt_compat40, set_compatibility_level },
   { "compat41", &shopt_compat41, set_compatibility_level },
-  { "compat42", &shopt_compat41, set_compatibility_level },
+  { "compat42", &shopt_compat42, set_compatibility_level },
 #if defined (READLINE)
   { "complete_fullquote", &complete_fullquote, (shopt_set_func_t *)NULL},
   { "direxpand", &dircomplete_expand, shopt_set_complete_direxpand },

Reply via email to