mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-13 05:28:49 +00:00
parent
7e769252e7
commit
b475325b5e
1 changed files with 1 additions and 0 deletions
|
@ -8,6 +8,7 @@ function math --description "Perform math calculations in bc"
|
|||
end
|
||||
|
||||
set -l out (echo $argv|env BC_LINE_LENGTH=0 bc)
|
||||
test -z "$out"; and return 1
|
||||
echo $out
|
||||
switch $out
|
||||
case 0
|
||||
|
|
Loading…
Reference in a new issue