diff options
| author | Daniel Shahaf <d.s@daniel.shahaf.name> | 2015-09-02 15:33:22 +0000 |
|---|---|---|
| committer | Daniel Shahaf <d.s@daniel.shahaf.name> | 2015-09-03 09:17:39 +0000 |
| commit | 1ba2fac03d611ca2955e1c019c9cc9189fd2920b (patch) | |
| tree | f89959f675d67234ef1d7ecb7985da9f820a27d3 /Test/A02alias.ztst | |
| parent | Add ChangeLog entry for tests from previous commit (diff) | |
| download | zsh-1ba2fac03d611ca2955e1c019c9cc9189fd2920b.tar zsh-1ba2fac03d611ca2955e1c019c9cc9189fd2920b.tar.gz zsh-1ba2fac03d611ca2955e1c019c9cc9189fd2920b.tar.bz2 zsh-1ba2fac03d611ca2955e1c019c9cc9189fd2920b.tar.lz zsh-1ba2fac03d611ca2955e1c019c9cc9189fd2920b.tar.xz zsh-1ba2fac03d611ca2955e1c019c9cc9189fd2920b.tar.zst zsh-1ba2fac03d611ca2955e1c019c9cc9189fd2920b.zip | |
36403: type -w += suffix alias
This makes 'type -w' distinguish suffix aliases from regular aliases,
like bare 'type' already does.
Use-case: detecting programmatically whether the command word is indeed
a valid command word (see <https://github.com/zsh-users/zsh-syntax-highlighting/issues/126>)
Diffstat (limited to 'Test/A02alias.ztst')
| -rw-r--r-- | Test/A02alias.ztst | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Test/A02alias.ztst b/Test/A02alias.ztst index b294e65ca..389617898 100644 --- a/Test/A02alias.ztst +++ b/Test/A02alias.ztst @@ -91,5 +91,8 @@ 0:unalias -a alias -s foo=print + type bar.foo; type -w bar.foo unalias -as 0:unalias -as +>foo is a suffix alias for print +>foo: suffix alias |
