Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Read-only variables in emulation mode
On Jun 15, 8:24pm, Bart Schaefer wrote:
}
} On Jun 16, 2:10am, Mikael Magnusson wrote:
} }
} } % echo hi; _=foo; echo $_
} } hi
} } hi
}
} That's actually a bug -- the assignment _=foo should erase $_ , I think.
Anybody see a problem with this?
diff --git a/Src/exec.c b/Src/exec.c
index daed3b1..35a101b 100644
--- a/Src/exec.c
+++ b/Src/exec.c
@@ -1115,6 +1115,7 @@ execsimple(Estate state)
if (code == WC_ASSIGN) {
cmdoutval = 0;
addvars(state, state->pc - 1, 0);
+ setunderscore("");
if (isset(XTRACE)) {
fputc('\n', xtrerr);
fflush(xtrerr);
Messages sorted by:
Reverse Date,
Date,
Thread,
Author