http://bugzilla.opensuse.org/show_bug.cgi?id=953149
http://bugzilla.opensuse.org/show_bug.cgi?id=953149#c11
--- Comment #11 from Johannes Meixner ---
A general recommendation when doing
read X Y Z < <(output of a command)
it is fail-safe programming to always add a dummy variable
where possibly trailing junk gets stored.
On my SLE11 system (with bash-3.2):
bad (probably "3.9" is unexpected):
-----------------------------------------------------------------------------
# ( IFS=. read maj min < <(rpm -q --qf "%{version}" cups) ; \
echo maj:$maj min:$min )
maj:1 min:3.9
-----------------------------------------------------------------------------
good:
-----------------------------------------------------------------------------
# ( IFS=. read maj min junk < <(rpm -q --qf "%{version}" cups) ; \
echo maj:$maj min:$min )
maj:1 min:3
-----------------------------------------------------------------------------
--
You are receiving this mail because:
You are on the CC list for the bug.