mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-27 04:40:59 +01:00
37591: 'alias -L': skip with a warning aliases with '=' in their LHS
This commit is contained in:
parent
152875ba03
commit
a8a00be442
3 changed files with 20 additions and 0 deletions
|
|
@ -96,3 +96,11 @@
|
|||
0:unalias -as
|
||||
>foo is a suffix alias for print
|
||||
>foo: suffix alias
|
||||
|
||||
aliases[x=y]=z
|
||||
alias -L | grep x=y
|
||||
echo $pipestatus[1]
|
||||
0:printing invalid aliases warns
|
||||
>0
|
||||
?(eval):2: invalid alias 'x=y' encountered while printing aliases
|
||||
# Currently, 'alias -L' returns 0 in this case. Perhaps it should return 1.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue