提交 ed168404 作者: Juan Batiz-Benet

test/sharness: "echo -n" bug

In OSX, the `echo -n` was _somehow_ printing "-n" out... not
really sure why, as the bsd `echo` program supports -n. I changed
this to printf -- which is safer.
上级 72f70364
......@@ -14,7 +14,7 @@ test_launch_ipfs_daemon
test_expect_success "'ipfs add afile' succeeds" '
echo "some text" >afile
HASH=`ipfs add -q afile`
echo -n $HASH >hashfile
printf "$HASH" >hashfile
'
test_expect_success "added file was pinned" '
......@@ -26,7 +26,7 @@ test_expect_success "'ipfs repo gc' succeeds" '
'
test_expect_success "'ipfs repo gc' looks good (empty)" '
echo -n "" >empty
printf "" >empty
test_cmp empty gc_out_actual
'
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论