[commit: ghc] master: testsuite: Use explicit -e in sed command (3ab8234)
git at git.haskell.org
git at git.haskell.org
Tue Dec 11 15:05:59 UTC 2018
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/3ab8234a973598800e95d15e9beefa653318e90e/ghc
>---------------------------------------------------------------
commit 3ab8234a973598800e95d15e9beefa653318e90e
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.
>---------------------------------------------------------------
3ab8234a973598800e95d15e9beefa653318e90e
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