From: Peter Stephenson <pws@ibmth.df.unipi.it>
To: zsh-workers@sunsite.auc.dk (Zsh hackers list)
Subject: PATCH: zsh-3.1.5-pws-17: history options again
Date: Sat, 08 May 1999 16:42:09 +0200 [thread overview]
Message-ID: <9905081442.AA46637@ibmth.df.unipi.it> (raw)
setopt with kshoptionprint was printing out
incrementalappendhistoryoff
which is obviously wrong. Here is a generic solution to the problem, but
maybe the option name is a bit too long, can we agree on another one before
it's too late? It's a shame the options weren't all standardised as having
`hist' rather than `history', but it's far too late to worry about that. How
about `incappendhistory'; I think 'inc' is a widely enough recognisable
abbreviation?
--- Src/options.c.iah Sat May 8 15:27:16 1999
+++ Src/options.c Sat May 8 16:37:10 1999
@@ -384,9 +384,9 @@
optno = -optno;
if (isset(KSHOPTIONPRINT)) {
if (defset(on))
- printf("no%-20s%s\n", on->nam, isset(optno) ? "off" : "on");
+ printf("no%-19s %s\n", on->nam, isset(optno) ? "off" : "on");
else
- printf("%-22s%s\n", on->nam, isset(optno) ? "on" : "off");
+ printf("%-21s %s\n", on->nam, isset(optno) ? "on" : "off");
} else if (set == (isset(optno) ^ defset(on))) {
if (set ^ isset(optno))
fputs("no", stdout);
--
Peter Stephenson <pws@ibmth.df.unipi.it> Tel: +39 050 844536
WWW: http://www.ifh.de/~pws/
Dipartimento di Fisica, Via Buonarroti 2, 56127 Pisa, Italy
next reply other threads:[~1999-05-08 15:07 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-05-08 14:42 Peter Stephenson [this message]
1999-05-08 23:56 ` Wayne Davison
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=9905081442.AA46637@ibmth.df.unipi.it \
--to=pws@ibmth.df.unipi.it \
--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).