mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-02 22:21:15 -03:00
Math: disable bc multi-line output.
This commit is contained in:
committed by
Konrad Borowski
parent
a3a918e900
commit
93f7c14ea6
@@ -7,7 +7,7 @@ function math --description "Perform math calculations in bc"
|
|||||||
return 0
|
return 0
|
||||||
end
|
end
|
||||||
|
|
||||||
set -l out (echo $argv|bc)
|
set -l out (echo $argv|env BC_LINE_LENGTH=0 bc)
|
||||||
echo $out
|
echo $out
|
||||||
switch $out
|
switch $out
|
||||||
case 0
|
case 0
|
||||||
|
|||||||
Reference in New Issue
Block a user