From c5b17b5310cd9fbcc07e03f28be58e760c602e60 Mon Sep 17 00:00:00 2001 From: Aaron Gyes Date: Sun, 2 Oct 2016 02:52:34 -0700 Subject: [PATCH] Quote `test` check to cause usage ouput --- share/functions/realpath.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/functions/realpath.fish b/share/functions/realpath.fish index 3b8eaf4a5..df4dcb61b 100644 --- a/share/functions/realpath.fish +++ b/share/functions/realpath.fish @@ -16,7 +16,7 @@ if not command -s realpath >/dev/null end else function realpath -w fish_realpath -d "get an absolute path without symlinks [fish_realpath]" - if test -z $argv + if test -z "$argv" printf "usage: %s%s%s %sfile%s …\n" (set_color -o) $_ (set_color normal) (set_color -u) (set_color normal) echo " resolves files as absolute paths without symlinks" return 1