https://bugzilla.novell.com/show_bug.cgi?id=331884#c15
--- Comment #15 from Dr. Werner Fink 2007-10-10 06:22:30 MST ---
IMHO the line
TEST=${1+"$@"}
holds the empty string caused by the `::' in the path.
Now if you use ${TEST} for the find command this works
like
eval find ${1+"$@"} -prune -type d -and -not -fstype nfs -print
that means that ${1+"$@"} is evaled before the find command and therefore
the empty string caused by the `::' is vanished:
bash> OLDIFS="$IFS"
bash> IFS=":"
bash> set -- $(echo a::b:c)
bash> IFS="$OLDIFS"
bash> echo $#
4
bash> TEST=${1+"$@"}
bash> echo ${TEST} | wc -c
6
bash> echo "${TEST}" | wc -c
7
if you use echo a:b:c the number of positional parameters is 3
and both wc tests leads to 6 characters.
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.