From 5380153043e5ca5a5473f843234459240a63872b Mon Sep 17 00:00:00 2001 From: Joe Groocock Date: Sun, 27 Aug 2017 16:41:16 +0100 Subject: [PATCH] Use a bash-ism for calc() alias --- aliases | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/aliases b/aliases index b92e38d..cb15f3f 100644 --- a/aliases +++ b/aliases @@ -34,9 +34,7 @@ alias -g NUL="&> /dev/null" alias -g BG="&;disown" alias -g COL="| column -t" alias -g CLIP="| xclip -i -selection primary -f | xclip -i -selection clipboard" -calc() { - echo "$@" | bc -l -} +calc() { bc -l <<< "$@"; } alias svi=sudoedit # This will enable us to use aliases in sudo.