# Description of problem:
The test command in ZSH 5.0.7 seems to be broken for some input values, in particular, '!' (a string containing only an exclamation mark). It causes a "too many arguments" error, instead of handling whatever content it is passed properly.
# Version-Release number of selected component (if applicable):
# How reproducible:
# Steps to Reproduce:
In ZSH, run
[ -n '!' ]
# Actual results:
Non-zero return code, and following printed in stderr:
[: too many arguments
# Expected results:
Zero return code and no output.
# Additional info:
The issue has been confirmed to me in the ZSH mailing list , and seems to have been fixed in version 5.0.8. The commit containing the fix was given out as well, so a backport should be possible (and greatly appreciated) if an update to 5.0.8 cannot be considered in the near future.
Thank you for reporting the bug! I believe it is safe to update zsh to 5.0.8 in stable Fedora. That version of zsh has been in rawhide for two weeks without any regressions reported so far.
zsh-5.0.8-1.fc21 has been submitted as an update for Fedora 21.
zsh-5.0.8-1.fc22 has been submitted as an update for Fedora 22.
Great! Thanks a lot for the quick response. I'll install the updated packages and test them out ASAP.
* should fix your issue,
* was pushed to the Fedora 22 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing zsh-5.0.8-1.fc22'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).
zsh-5.0.8-1.fc21 has been pushed to the Fedora 21 stable repository. If problems still persist, please make note of it in this bug report.
zsh-5.0.8-1.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.