270b5d0390
Add missing local variable set. Replace `>/dev/null 2>&1` by `&>/dev/null`. Check return value of zstyle (if zero), instead of resulting string value (if non-empty).
8 lines
163 B
Bash
8 lines
163 B
Bash
# vim:et sts=2 sw=2 ft=zsh
|
|
# Prints the first non-empty string in the arguments array.
|
|
local arg
|
|
for arg in ${argv}; do
|
|
print -n ${arg}
|
|
return 0
|
|
done
|
|
return 1
|