diff --git a/test/sharness/t0040-add-and-cat.sh b/test/sharness/t0040-add-and-cat.sh index 00419cc95..e863353b6 100755 --- a/test/sharness/t0040-add-and-cat.sh +++ b/test/sharness/t0040-add-and-cat.sh @@ -83,7 +83,7 @@ test_add_cat_file() { ' test_expect_success "ipfs cat with length output looks good" ' - echo -n "Hello Wo" >expected && + printf "Hello Wo" >expected && test_cmp expected actual ' @@ -92,8 +92,7 @@ test_add_cat_file() { ' test_expect_success "ipfs cat multiple hashes with offset and length looks good" ' - echo " Worlds!" >expected && - echo -n "Hello " >>expected && + printf " Worlds!\nHello " >expected && test_cmp expected actual '