zsh-workers
 help / color / mirror / code / Atom feed
* HIST_NO_STORE fix
@ 1995-07-09  3:18 Zefram
  0 siblings, 0 replies; only message in thread
From: Zefram @ 1995-07-09  3:18 UTC (permalink / raw)
  To: Z Shell workers mailing list

-----BEGIN PGP SIGNED MESSAGE-----

The patch below fixes HIST_NO_STORE, which currently doesn't work at
all.  If anyone thinks the test ops['R'] etc. is actually useful, I
think another sensible semantic would be obtained by putting a ! before
the parentheses containing that test.

 -zefram

      *** Src/builtin.c.old	Sun Jul  9 04:09:51 1995
      --- Src/builtin.c	Sun Jul  9 04:10:44 1995
      ***************
      *** 2630,2637 ****
            }
            /* delayrem is set if the command is r */
            delayrem = !strcmp(nam, "r");
      !     if (!delayrem && !(ops['l'] && unset(HISTNOSTORE)) &&
      ! 	(ops['R'] || ops['W'] || ops['A']))
        	remhist();
            if (ops['R']) {
        	/* read history from a file */
      --- 2630,2636 ----
            }
            /* delayrem is set if the command is r */
            delayrem = !strcmp(nam, "r");
      !     if (!delayrem && !(ops['l'] && unset(HISTNOSTORE)))
        	remhist();
            if (ops['R']) {
        	/* read history from a file */

-----BEGIN PGP SIGNATURE-----
Version: 2.6.i

iQBVAgUBL/9KgWWJ8JfKi+e9AQFWWQH9FWb9LfH/5HfhnBmAXyAlFNiMkeNEj4ps
2AbYwoSl1uCcsrmyx7La0tyyRtallpSpT/Fi2c497dx0rZ8NRNSVjA==
=ZJeP
-----END PGP SIGNATURE-----


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1995-07-09  3:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1995-07-09  3:18 HIST_NO_STORE fix 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).