From 93f7c14ea6018d60b6e3c561e52e6aee74396cc1 Mon Sep 17 00:00:00 2001 From: Derek Li Date: Fri, 13 Dec 2013 15:00:17 +0800 Subject: [PATCH] Math: disable bc multi-line output. --- share/functions/math.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/functions/math.fish b/share/functions/math.fish index bad349d93..b262fd3bd 100644 --- a/share/functions/math.fish +++ b/share/functions/math.fish @@ -7,7 +7,7 @@ function math --description "Perform math calculations in bc" return 0 end - set -l out (echo $argv|bc) + set -l out (echo $argv|env BC_LINE_LENGTH=0 bc) echo $out switch $out case 0