diff options
Diffstat (limited to 'share/functions/math.fish')
-rw-r--r-- | share/functions/math.fish | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/share/functions/math.fish b/share/functions/math.fish index b262fd3b..ced85aad 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 |