mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-13 05:28:49 +00:00
Math: disable bc multi-line output.
This commit is contained in:
parent
a3a918e900
commit
93f7c14ea6
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue