From c746da1edba21db230101469a4a295d96b2ed6cc Mon Sep 17 00:00:00 2001 From: "Adrian C. (anrxc)" Date: Mon, 26 Dec 2011 22:05:41 +0100 Subject: zshrc: fix extract() error notifications Wrong usage of quotes caused filenames not to be printed. --- zshrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zshrc b/zshrc index f1c5100..f0ca08f 100644 --- a/zshrc +++ b/zshrc @@ -215,10 +215,10 @@ function extract () { *.7z) 7z x "$1" ;; *.Z) uncompress "$1" ;; *.gpg) gpg2 -d "$1" | tar -xvzf - ;; - *) echo 'Error: failed to extract "$1"' ;; + *) echo "Error: failed to extract $1" ;; esac else - echo 'Error: "$1" is not a valid file for extraction' + echo "Error: $1 is not a valid file for extraction" fi } -- cgit v1.2.3