diff --git a/share/functions/math.fish b/share/functions/math.fish index b262fd3bd..ced85aad4 100644 --- a/share/functions/math.fish +++ b/share/functions/math.fish @@ -8,6 +8,7 @@ function math --description "Perform math calculations in bc" end set -l out (echo $argv|env BC_LINE_LENGTH=0 bc) + test -z "$out"; and return 1 echo $out switch $out case 0