ajout de evali()

This commit is contained in:
Jephté Clain 2017-03-01 20:01:18 +04:00
parent af3bb37f3d
commit a5fcf7858f
1 changed files with 5 additions and 0 deletions

View File

@ -27,3 +27,8 @@ function isrnum() {
v="${v//[0-9]/}"
[ -z "$v" ]
}
function evali() {
# Evaluer une expression numérique
echo "$(($*))"
}