D6729: tests: use `tr -d` and not `tr --delete` since the latter is absent on BSD tr(1)

durin42 (Augie Fackler) phabricator at mercurial-scm.org
Fri Aug 16 05:47:25 EDT 2019


Closed by commit rHG55f59a25c593: tests: use `tr -d` and not `tr --delete` since the latter is absent on BSD tr(1) (authored by durin42).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D6729?vs=16212&id=16221

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D6729/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D6729

AFFECTED FILES
  tests/test-merge-combination.t

CHANGE DETAILS

diff --git a/tests/test-merge-combination.t b/tests/test-merge-combination.t
--- a/tests/test-merge-combination.t
+++ b/tests/test-merge-combination.t
@@ -57,7 +57,7 @@
   >                fi
   >           else expected=a
   >           fi
-  >           got=`hg log -r 3 --template '{files}\n' | tr --delete 'e '`
+  >           got=`hg log -r 3 --template '{files}\n' | tr -d 'e '`
   >           if [ "$got" = "$expected" ]
   >           then echo "$line$conflicts: agree on \"$got\""
   >           else echo "$line$conflicts: hg said \"$got\", expected \"$expected\""



To: durin42, #hg-reviewers, av6, pulkit
Cc: mercurial-devel


More information about the Mercurial-devel mailing list