Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Bug report
- X-seq: zsh-workers 34055
- From: mvxxc@xxxxxx
- To: zsh-workers@xxxxxxx
- Subject: Bug report
- Date: Fri, 26 Dec 2014 17:53:44 +0100
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
If the following script is run in an empty directory, zsh executes the defined
function only once.
#!/usr/bin/zsh
set -e
setopt NULL_GLOB
func () {for i in _*; do echo $i; done; echo _;}
func
if false; then
:
else
func
fi
After adding one line, the function is executed twice.
[...]
else
:
func
fi
"set -e" and "NULL_GLOB" seem to affect both function calls in a different way.
This could be a bug, as the answer to my question on Stack Overflow suggests.
https://stackoverflow.com/questions/27648773.
MVXXC
Messages sorted by:
Reverse Date,
Date,
Thread,
Author