* PATCH: option changes
@ 1999-10-07 11:05 Zefram
0 siblings, 0 replies; only message in thread
From: Zefram @ 1999-10-07 11:05 UTC (permalink / raw)
To: zsh-workers
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1999-10-07 11:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-10-07 11:05 PATCH: option changes Zefram
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).