2018-05-10 03:22:32 +02:00
|
|
|
# vim:et sts=2 sw=2 ft=zsh
|
2017-03-15 15:40:22 +01:00
|
|
|
# Prints the first non-empty string in the arguments array.
|
2018-10-03 03:02:06 +02:00
|
|
|
local arg
|
2017-03-15 15:40:22 +01:00
|
|
|
for arg in ${argv}; do
|
|
|
|
print -n ${arg}
|
|
|
|
return 0
|
|
|
|
done
|
|
|
|
return 1
|