From: Zefram <zefram@fysh.org>
To: zsh-workers@sunsite.auc.dk
Subject: PATCH: option changes
Date: Thu, 7 Oct 1999 12:05:21 +0100 (BST) [thread overview]
Message-ID: <E11ZBMP-0005dU-00@crucigera.fysh.org> (raw)
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
reply other threads:[~1999-10-07 11:05 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E11ZBMP-0005dU-00@crucigera.fysh.org \
--to=zefram@fysh.org \
--cc=zsh-workers@sunsite.auc.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).