mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-05 16:21:15 -03:00
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user