mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-25 12:23:09 +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
|
||||
end
|
||||
|
||||
set -l out (echo $argv|bc)
|
||||
set -l out (echo $argv|env BC_LINE_LENGTH=0 bc)
|
||||
echo $out
|
||||
switch $out
|
||||
case 0
|
||||
|
|
Loading…
Reference in a new issue