Use ls instead of echo to avoid returning * on empty dirs

This commit is contained in:
Tom G. Christensen 2009-10-25 11:00:07 +00:00
parent 2f1bc2aea6
commit 3854b49dfd

View File

@ -544,7 +544,7 @@ symlink_man()
OIFS="$IFS" OIFS="$IFS"
IFS=" IFS="
" "
manpages="$(echo $i/*)" manpages="$(${__ls} $i/* 2>/dev/null)"
for manpage in $manpages for manpage in $manpages
do do
solink="$(${__head} -n 1 $manpage)" solink="$(${__head} -n 1 $manpage)"