Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 238bceb

Browse files
committedOct 3, 2015
ipfs-test-lib: fix shellquote()
License: MIT Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
1 parent d352b04 commit 238bceb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed
 

‎test/ipfs-test-lib.sh

+3-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@ shellquote() {
2828
_space=''
2929
for _arg
3030
do
31-
printf '%s' "$_space"
32-
printf '%s' "$_arg" | sed -e "s/'/'\\\\''/g; s/^/'/; s/\$/'/;"
31+
printf '%s'\' "$_space"
32+
printf '%s' "$_arg" | sed -e "s/'/'\\\\''/g"
33+
printf \'
3334
_space=' '
3435
done
3536
printf '\n'

0 commit comments

Comments
 (0)
Please sign in to comment.