From 1a701be07baabb8cfc1018daaca4039191c6ba7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olivier=20Mengu=C3=A9?= Date: Fri, 5 Feb 2016 22:44:50 +0100 Subject: [PATCH] zsh: Escape wildcard '*' in case block of the shell code (GH #17) Zsh 5.0.2 does not show the behaviour we have in bash dans dash, but we preventively add the same fix as for the other shells. --- lib/AngelPS1/Shell/zsh.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/AngelPS1/Shell/zsh.pm b/lib/AngelPS1/Shell/zsh.pm index 19586a7..df0c77e 100644 --- a/lib/AngelPS1/Shell/zsh.pm +++ b/lib/AngelPS1/Shell/zsh.pm @@ -98,7 +98,7 @@ $NAME() PS1="\$APS1_PS1" ;; unmute|on) add-zsh-hook precmd -angel-PS1 ;; - *) + ''*) echo 'usage: $NAME [reload|quit|mute|off|unmute|on]' >&2 ; return 1 ;; esac ;