Math: disable bc multi-line output.

This commit is contained in:
Derek Li 2013-12-13 15:00:17 +08:00 committed by Konrad Borowski
parent a3a918e900
commit 93f7c14ea6

View file

@ -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