about summary refs log tree commit diff
diff options
context:
space:
mode:
authorOliver Kiddle <opk@zsh.org>2021-11-28 20:51:41 +0100
committerOliver Kiddle <opk@zsh.org>2021-11-28 20:51:41 +0100
commit926a1a729661e0ea31e5dcfd3965cea747d36af3 (patch)
tree8d0a988c79be38dd83eb925e2e1285d4f03c4835
parent78958c08bfdb37d2eafaf14a33b93229b1fa9e31 (diff)
downloadzsh-926a1a729661e0ea31e5dcfd3965cea747d36af3.tar.gz
zsh-926a1a729661e0ea31e5dcfd3965cea747d36af3.tar.xz
zsh-926a1a729661e0ea31e5dcfd3965cea747d36af3.zip
49602: only set LOGCHECK from the watch module
-rw-r--r--ChangeLog2
-rw-r--r--Src/params.c3
2 files changed, 3 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index a05322d0b..bf1f88b03 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2021-11-28  Oliver Kiddle  <opk@zsh.org>
 
+	* 49602: Src/params.c: only set LOGCHECK from the watch module
+
 	* 49601: Src/hist.c, Test/W01history.ztst: don't create
 	ambiguous history file entries for lines ending with a backslash
 
diff --git a/Src/params.c b/Src/params.c
index dadf83129..970a207e4 100644
--- a/Src/params.c
+++ b/Src/params.c
@@ -758,7 +758,7 @@ split_env_string(char *env, char **name, char **value)
  */
 static int dontimport(int flags)
 {
-    /* If explicitly marked as don't export */
+    /* If explicitly marked as don't import */
     if (flags & PM_DONTIMPORT)
 	return 1;
     /* If value already exported */
@@ -818,7 +818,6 @@ createparamtable(void)
      * given them in the environment.                           */
     opts[ALLEXPORT] = 0;
     setiparam("MAILCHECK", 60);
-    setiparam("LOGCHECK", 60);
     setiparam("KEYTIMEOUT", 40);
     setiparam("LISTMAX", 100);
     /*