2005-07-20 Stepan Kasal * lib/install-sh: Use sed and eval instead of IFS=/, to avoid word splitting. Index: lib/install-sh =================================================================== RCS file: /cvs/automake/automake/lib/install-sh,v retrieving revision 1.25 diff -u -r1.25 install-sh --- lib/install-sh 9 Jul 2005 10:21:12 -0000 1.25 +++ lib/install-sh 20 Jul 2005 08:31:05 -0000 @@ -224,11 +224,10 @@ -*) pathcomp=./ ;; *) pathcomp= ;; esac - oIFS=$IFS - IFS=/ - set fnord $dstdir + # We cannot use IFS=/ because wildcards are expanded after word splitting. + d=`echo "$dstdir"|sed "s,','\\\\\\\\'',g;s,/,' ',g;s,^,',;s,\\\$,',"` + eval set fnord "$d" shift - IFS=$oIFS for d do