mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-23 12:52:29 +08:00
parent
7e769252e7
commit
b475325b5e
|
@ -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 New Issue
Block a user