summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-09-27 15:46:51 +0000
committerZac Medico <zmedico@gentoo.org>2007-09-27 15:46:51 +0000
commitc922a749ba04d7837f1c2910359bc3e7473b3f59 (patch)
treebb06d3b2f835dcc63201ba0a4b69aacbf9e07275
parent9db2b6a19b2a1e8a381a3b8c5b9bdab1868c0d02 (diff)
downloadportage-c922a749ba04d7837f1c2910359bc3e7473b3f59.tar.gz
portage-c922a749ba04d7837f1c2910359bc3e7473b3f59.tar.bz2
portage-c922a749ba04d7837f1c2910359bc3e7473b3f59.zip
Bug #193486 - Use echo -n and properly quote the array argument.
svn path=/main/trunk/; revision=7850
-rwxr-xr-xbin/ecompress2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/ecompress b/bin/ecompress
index 676929d44..1a51f9d63 100755
--- a/bin/ecompress
+++ b/bin/ecompress
@@ -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} "$@"