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

HIST_NO_STORE fix



-----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-----



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