[commit: ghc] circleci-centos: testsuite: Use explicit -e in sed command (6c98b9f)

git at git.haskell.org git at git.haskell.org
Tue Dec 11 03:03:00 UTC 2018


Repository : ssh://git@git.haskell.org/ghc

On branch  : circleci-centos
Link       : http://ghc.haskell.org/trac/ghc/changeset/6c98b9f011351d486a4a723b4ad86472edbb0290/ghc

>---------------------------------------------------------------

commit 6c98b9f011351d486a4a723b4ad86472edbb0290
Author: Ben Gamari <ben at smart-cactus.org>
Date:   Sun Dec 9 11:05:52 2018 -0500

    testsuite: Use explicit -e in sed command
    
    Otherwise Darwin's sed interprets the command as the suffix for -i.


>---------------------------------------------------------------

6c98b9f011351d486a4a723b4ad86472edbb0290
 testsuite/tests/ghci/should_run/T15369.script | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/testsuite/tests/ghci/should_run/T15369.script b/testsuite/tests/ghci/should_run/T15369.script
index 5232c6a..2ebed01 100644
--- a/testsuite/tests/ghci/should_run/T15369.script
+++ b/testsuite/tests/ghci/should_run/T15369.script
@@ -8,6 +8,6 @@
 :all-types
 :l *T15369.hs
 :all-types
-:! sed -i 's/Int/Double/g' T15369.hs
+:! sed -i -e 's/Int/Double/g' T15369.hs
 :l *T15369.hs
 :all-types



More information about the ghc-commits mailing list