1
0
Fork 0
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:
Daniel Shahaf 2016-01-13 00:57:55 +00:00
parent 152875ba03
commit a8a00be442
3 changed files with 20 additions and 0 deletions

View file

@ -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.