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 | 33277: Fix VCS_INFO_reposub's command expansion (diff) | |
| download | zsh-cf6b0f5663e798c8d4303697115230ac4469baca.tar zsh-cf6b0f5663e798c8d4303697115230ac4469baca.tar.gz zsh-cf6b0f5663e798c8d4303697115230ac4469baca.tar.bz2 zsh-cf6b0f5663e798c8d4303697115230ac4469baca.tar.lz zsh-cf6b0f5663e798c8d4303697115230ac4469baca.tar.xz zsh-cf6b0f5663e798c8d4303697115230ac4469baca.tar.zst 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
@@ -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 ----------------------------- |
