diff options
| author | Peter Stephenson <p.stephenson@samsung.com> | 2021-08-10 09:19:32 +0100 |
|---|---|---|
| committer | Peter Stephenson <p.stephenson@samsung.com> | 2021-08-10 09:19:32 +0100 |
| commit | daa208e90763d304dc1d554a834d0066e0b9937c (patch) | |
| tree | 2af47d1d690225eab47f526ba3aced64b1ecc096 /Src/parse.c | |
| parent | github #77: Improve subl completions for Sublime Text v4 (diff) | |
| download | zsh-daa208e90763d304dc1d554a834d0066e0b9937c.tar zsh-daa208e90763d304dc1d554a834d0066e0b9937c.tar.gz zsh-daa208e90763d304dc1d554a834d0066e0b9937c.tar.bz2 zsh-daa208e90763d304dc1d554a834d0066e0b9937c.tar.lz zsh-daa208e90763d304dc1d554a834d0066e0b9937c.tar.xz zsh-daa208e90763d304dc1d554a834d0066e0b9937c.tar.zst zsh-daa208e90763d304dc1d554a834d0066e0b9937c.zip | |
49269: Fix "[ ! -o ]".
This should detect "-o" as non-empty string; "-a" was alrady working.
Update the test.
Diffstat (limited to 'Src/parse.c')
| -rw-r--r-- | Src/parse.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/parse.c b/Src/parse.c index b09c7989a..be26112a5 100644 --- a/Src/parse.c +++ b/Src/parse.c @@ -2509,7 +2509,7 @@ par_cond_2(void) * In "test" compatibility mode, "! -a ..." and "! -o ..." * are treated as "[string] [and] ..." and "[string] [or] ...". */ - if (!(n_testargs > 1 && (check_cond(*testargs, "a") || + if (!(n_testargs > 2 && (check_cond(*testargs, "a") || check_cond(*testargs, "o")))) { condlex(); |
