3 ms·
https://github.com/reegnz/jq-zsh-plugin/blob/e61804e35a593ada9c4d23ee5c957d08974ac382/jq.plugin.zsh#L17 https://github.com/reegnz/jq-zsh-plugin/blob/e61804e35a5
by neuromanser 3y ago
https://github.com/reegnz/jq-zsh-plugin/blob/e61804e35a593ada9c4d23ee5c957d08974ac382/jq.plugin.zsh#L17 https://github.com/reegnz/jq-zsh-plugin/blob/e61804e35a593ad...
zshbuiltins(1): Unlike parameter assignment statements, typeset's exit status on an assignemt that involves a command substitution does not reflect the exit status of the command substitution. Therefore, to test for an error in a command substitution, separate the declaration of the parameter from its initialization.
- reegnz 3y agoFixed: https://github.com/reegnz/jq-zsh-plugin/pull/25 https://github.com/reegnz/jq-zsh-plugin/pull/25