From 122791646ec7dc421a679cb39cce7a8cbc0a7594 Mon Sep 17 00:00:00 2001 From: Torsten Grust Date: Thu, 30 Aug 2012 13:17:32 +0200 Subject: [PATCH] Fix check for non-empty argument (= initial tab) in fish_config The original version (based on 'test') was creating spurious files named "0" in the current working directory --- share/functions/fish_config.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/functions/fish_config.fish b/share/functions/fish_config.fish index 10f15f096..2a7545e4d 100644 --- a/share/functions/fish_config.fish +++ b/share/functions/fish_config.fish @@ -1,7 +1,7 @@ function fish_config --description "Launch fish's web based configuration" # Support passing an initial tab like "colors" or "functions" set -l initial_tab - if test (count $argv) > 0 + if count $argv >/dev/null set initial_tab $argv[1] end eval $__fish_datadir/tools/web_config/webconfig.py $initial_tab