Bug #193486 - Use echo -n and properly quote the array argument.
authorZac Medico <zmedico@gentoo.org>
Thu, 27 Sep 2007 15:46:51 +0000 (15:46 -0000)
committerZac Medico <zmedico@gentoo.org>
Thu, 27 Sep 2007 15:46:51 +0000 (15:46 -0000)
svn path=/main/trunk/; revision=7850

bin/ecompress

index 676929d4496d174ba9a1e705735056e6721e6c1d..1a51f9d630e89338bf1986756bb82aa7102a2f5a 100755 (executable)
@@ -67,7 +67,7 @@ case $1 in
                # delete it so that the compressor doesn't whine (bzip2 will
                # complain and skip, gzip will prompt for input)
                suffix=$(ecompress --suffix)
-               [[ -n ${suffix} ]] && echo ${@/%/${suffix}$'\001'} | \
+               [[ -n ${suffix} ]] && echo -n "${@/%/${suffix}$'\001'}" | \
                        tr '\001' '\000' | ${XARGS} -0 rm -f
                # Finally, let's actually do some real work
                exec "${PORTAGE_COMPRESS}" ${PORTAGE_COMPRESS_FLAGS} "$@"