summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--Src/builtin.c1
2 files changed, 5 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 5ff60c6f2..b066f208e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2016-06-07  Barton E. Schaefer  <schaefer@zsh.org>
+
+	* 38630: Src/builtin.c: fix infinite loop of "hash ="
+
 2016-06-06  Daniel Shahaf  <d.s@daniel.shahaf.name>
 
 	* 38610: Functions/VCS_Info/VCS_INFO_quilt: vcs_info quilt:
diff --git a/Src/builtin.c b/Src/builtin.c
index 6f07fc678..c2fb81ed1 100644
--- a/Src/builtin.c
+++ b/Src/builtin.c
@@ -3748,6 +3748,7 @@ bin_hash(char *name, char **argv, Options ops, UNUSED(int func))
         if (!(asg = getasg(&argv, NULL))) {
 	    zwarnnam(name, "bad assignment");
 	    returnval = 1;
+	    break;
         } else if (ASG_VALUEP(asg)) {
 	    if(isset(RESTRICTED)) {
 		zwarnnam(name, "restricted: %s", asg->value.scalar);