kiss: Smaller ternary

This commit is contained in:
Dylan Araps 2020-04-20 08:59:13 +03:00
parent 0e367daf53
commit 26599066ce
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E

2
kiss
View File

@ -1227,7 +1227,7 @@ args() {
# 'dash' exits on error here if 'shift' is used and there are zero # 'dash' exits on error here if 'shift' is used and there are zero
# arguments despite trapping the error ('|| :'). # arguments despite trapping the error ('|| :').
shift "$(($# > 0 ? 1 : 0))" shift "$(($# ? 1 : 0))"
# Unless this is a search, sanitize the user's input. The call to # Unless this is a search, sanitize the user's input. The call to
# 'pkg_find()' supports basic globbing, ensure input doesn't expand # 'pkg_find()' supports basic globbing, ensure input doesn't expand