From 4f9b07e979b442b7e6f8ccbfcf559590b02a5b4e Mon Sep 17 00:00:00 2001 From: James Vega Date: Wed, 24 Nov 2010 00:49:15 +0800 Subject: [PATCH] Allow fish_greeting to be NULL or an array Treat fish_greeting as a whole when show up the greeting messages. And the user may want to set fish_greeting to an null value or an array. This requires that the variable be quoted when used as an argument for switch in __fish_config_interactive. Signed-off-by: James Vega [modified the commit message] Signed-off-by: Grissiom --- share/functions/__fish_config_interactive.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/functions/__fish_config_interactive.fish b/share/functions/__fish_config_interactive.fish index e2ace3f0c..7ec8215ed 100644 --- a/share/functions/__fish_config_interactive.fish +++ b/share/functions/__fish_config_interactive.fish @@ -150,7 +150,7 @@ function __fish_config_interactive -d "Initializations that should be performed fish_greeting else if set -q fish_greeting - switch $fish_greeting + switch "$fish_greeting" case '' # If variable is empty, don't print anything, saves us a fork