diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-09-27 15:47:20 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-09-27 15:47:20 +0000 |
commit | 2bc45d58cae78b672e84ce213b4bbf2738986343 (patch) | |
tree | ec86cc85e849de96f8603680691645b8be880562 | |
parent | b4e41bc9eb7f6b5da44ff7bb6bddfdad714c4e7c (diff) | |
download | portage-2bc45d58cae78b672e84ce213b4bbf2738986343.tar.gz portage-2bc45d58cae78b672e84ce213b4bbf2738986343.tar.bz2 portage-2bc45d58cae78b672e84ce213b4bbf2738986343.zip |
Bug #193486 - Use echo -n and properly quote the array argument. (trunk r7850)
svn path=/main/branches/2.1.2/; revision=7851
-rwxr-xr-x | bin/ecompress | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/ecompress b/bin/ecompress index d2d6553a3..5a2dcbf36 100755 --- a/bin/ecompress +++ b/bin/ecompress @@ -48,7 +48,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} "$@" |