Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

PATCH: option changes



Further to my last message, here's the patch, which I'm sending separately
in case it turns out to be controversial.

It also occurred to me that having SHORT_LOOPS on by default in sh/ksh
mode is rather dubious.  There's a second patch below to change that.

-zefram

--- Src/options.c~	Thu Oct  7 11:56:56 1999
+++ Src/options.c	Thu Oct  7 11:58:17 1999
@@ -105,7 +105,7 @@
 {NULL, "equals",	      OPT_EMULATE|OPT_ZSH,	 EQUALS},
 {NULL, "errexit",	      OPT_EMULATE,		 ERREXIT},
 {NULL, "exec",		      OPT_EMULATE|OPT_ALL,		 EXECOPT},
-{NULL, "extendedglob",	      OPT_EMULATE,		 EXTENDEDGLOB},
+{NULL, "extendedglob",	      OPT_EMULATE|OPT_ZSH,	 EXTENDEDGLOB},
 {NULL, "extendedhistory",     OPT_CSH,			 EXTENDEDHISTORY},
 {NULL, "flowcontrol",	      OPT_ALL,			 FLOWCONTROL},
 {NULL, "functionargzero",     OPT_EMULATE|OPT_NONBOURNE, FUNCTIONARGZERO},
--- Doc/Zsh/options.yo~	Thu Oct  7 12:00:15 1999
+++ Doc/Zsh/options.yo	Thu Oct  7 12:00:59 1999
@@ -329,7 +329,7 @@
 )
 pindex(EXTENDED_GLOB)
 cindex(globbing, extended)
-item(tt(EXTENDED_GLOB))(
+item(tt(EXTENDED_GLOB) <Z>)(
 Treat the `tt(#)', `tt(~)' and `tt(^)' characters as part of patterns
 for filename generation, etc.  (An initial unquoted `tt(~)'
 always produces named directory expansion.)
END

--- Src/options.c~	Thu Oct  7 11:56:56 1999
+++ Src/options.c	Thu Oct  7 11:58:17 1999
@@ -185,7 +185,7 @@
 {NULL, "shglob",	      OPT_EMULATE|OPT_BOURNE,	 SHGLOB},
 {NULL, "shinstdin",	      OPT_SPECIAL,		 SHINSTDIN},
 {NULL, "shoptionletters",     OPT_EMULATE|OPT_BOURNE,	 SHOPTIONLETTERS},
-{NULL, "shortloops",	      OPT_EMULATE|OPT_ALL,	 SHORTLOOPS},
+{NULL, "shortloops",	      OPT_EMULATE|OPT_NONBOURNE, SHORTLOOPS},
 {NULL, "shwordsplit",	      OPT_EMULATE|OPT_BOURNE,	 SHWORDSPLIT},
 {NULL, "singlecommand",	      OPT_SPECIAL,		 SINGLECOMMAND},
 {NULL, "singlelinezle",	      OPT_KSH,			 SINGLELINEZLE},
--- Doc/Zsh/options.yo~	Thu Oct  7 12:00:15 1999
+++ Doc/Zsh/options.yo	Thu Oct  7 12:00:59 1999
@@ -982,7 +982,7 @@
 This also affects the value of the tt(-) special parameter.
 )
 pindex(SHORT_LOOPS)
-item(tt(SHORT_LOOPS) <D>)(
+item(tt(SHORT_LOOPS) <C> <Z>)(
 Allow the short forms of tt(for), tt(select),
 tt(if), and tt(function) constructs.
 )
END



Messages sorted by: Reverse Date, Date, Thread, Author