diff options
author | Peter Stephenson <p.w.stephenson@ntlworld.com> | 2014-09-29 21:02:59 +0100 |
---|---|---|
committer | Peter Stephenson <p.w.stephenson@ntlworld.com> | 2014-09-29 21:02:59 +0100 |
commit | cf6b0f5663e798c8d4303697115230ac4469baca (patch) | |
tree | 6d91ba3556177799897a307b3c17ca7c286f7d0e /NEWS | |
parent | 4a529201b8524bb3b149a5e7702bbaf8787617f2 (diff) | |
download | zsh-cf6b0f5663e798c8d4303697115230ac4469baca.tar.gz zsh-cf6b0f5663e798c8d4303697115230ac4469baca.tar.xz zsh-cf6b0f5663e798c8d4303697115230ac4469baca.zip |
33285: apply function definition redirections at execution
Diffstat (limited to 'NEWS')
-rw-r--r-- | NEWS | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/NEWS b/NEWS index 7dc134e68..bf8969b26 100644 --- a/NEWS +++ b/NEWS @@ -107,6 +107,13 @@ Changes since 5.0.0 Also, the value of $pipestatus is now updated when a job stops, not just when it exits. +- Redirections applied to function definitions take effect when the + function is executed, not when it is defined. Other shells already + work this way. For example, + fn() { echo hello } >~/logfile + Running fn writes "hello" to logfile. In older versions of the shell + it would create an empty file at the point of definition. + Changes between 4.2 and 5.0.0 ----------------------------- |