diff options
| author | dana <dana@dana.is> | 2026-05-30 19:56:30 -0500 |
|---|---|---|
| committer | dana <dana@dana.is> | 2026-06-01 19:00:21 -0500 |
| commit | 48fa360ea48f08bb4944549bcf6df31149329383 (patch) | |
| tree | 6284b12446e95f15d3bd0e3c068cac4a8b2e6e10 /Test | |
| parent | 49374: Show patchlevel in version string (diff) | |
| download | zsh-48fa360ea48f08bb4944549bcf6df31149329383.tar zsh-48fa360ea48f08bb4944549bcf6df31149329383.tar.gz zsh-48fa360ea48f08bb4944549bcf6df31149329383.tar.bz2 zsh-48fa360ea48f08bb4944549bcf6df31149329383.tar.lz zsh-48fa360ea48f08bb4944549bcf6df31149329383.tar.xz zsh-48fa360ea48f08bb4944549bcf6df31149329383.tar.zst zsh-48fa360ea48f08bb4944549bcf6df31149329383.zip | |
54644: init: add patchlevel to --version output
Diffstat (limited to 'Test')
| -rw-r--r-- | Test/E01options.ztst | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Test/E01options.ztst b/Test/E01options.ztst index dcb14e013..6e4690ef7 100644 --- a/Test/E01options.ztst +++ b/Test/E01options.ztst @@ -96,6 +96,15 @@ %test +# --version is technically an option + v=$( $ZTST_testdir/../Src/zsh --version ) + print -r - $v + # patchlevel should appear in output if different from version + [[ $ZSH_PATCHLEVEL == zsh-$ZSH_VERSION-0-* ]] || + [[ $v == *\[$ZSH_PATCHLEVEL\]* ]] +0:zsh --version output +*>zsh * \(*\) + # setopt should move on to the next operation in the face of an error, but # preserve the >0 return code unsetopt aliases |
