This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Runs "$@" in a subshell with the caller's options, sets reply=(stdout stderr) | |
| # and returns the status of the executed command. Both stdout and stderr are | |
| # captured completely, including NUL bytes, incomplete UTF-8 characters and | |
| # trailing LF, if any. | |
| # | |
| # Example: | |
| # | |
| # % zsh-run-command ls -d ~ /garbage | |
| # % printf 'status: %s\nstdout: %s\nstderr: %s\n' $? "${(q+)reply[@]}" | |
| # status: 2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Runs "$@" in a subshell with the caller's options, sets reply=(stdout stderr) | |
| # and returns the status of the executed command. Both stdout and stderr are | |
| # captured completely, including NUL bytes, incomplete UTF-8 characters and | |
| # trailing LF, if any. | |
| # | |
| # Example: | |
| # | |
| # % zsh-run-command ls -d ~ /garbage | |
| # % printf 'status: %s\nstdout: %s\nstderr: %s\n' $? "${(q+)reply[@]}" | |
| # status: 2 |