Fix elvish 0.18 compatibility

This commit is contained in:
Benjamin VAUDOUR 2022-03-20 18:30:03 +01:00
parent 7a8f6207f9
commit 22b5ba1dfa
5 changed files with 5 additions and 5 deletions

View file

@ -40,7 +40,7 @@ fn -s {|&sort=$false &type=exact @motive|
$f $m | peach {|e|
set result[$e] = $nil
}
} except e { }
} catch e { }
} $motive
}
-r $sort $result

View file

@ -38,7 +38,7 @@ fn int {|v|
var n = (math:trunc $v)
var s @_ = (str:split '.' (to-string $n))
put $s
} except e {
} catch e {
fail (printf '%s nest pas un nombre' $v)
}
} elif (eq $k 'number') {