Skip to content

Commit 48ac65b

Browse files
Rudolf Adamkovičyantar92
authored andcommitted
ob-sed-test: Make the tests pass on BSD systems, such as macOS
* testing/examples/ob-sed-test.org: Fix BSD sed incompatibility
1 parent 9b69046 commit 48ac65b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

testing/examples/ob-sed-test.org

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@
3030
:ID: E3C6A8BA-39FF-4840-BA8E-90D5C4365AB1
3131
:END:
3232

33-
#+BEGIN_SRC sed :in-file test2.txt :cmd-line "-i"
33+
/Note:/ Use =-i.backup= instead of just =-i= because the BSD =sed=,
34+
unlike the GNU =sed=, requires =-i <extension>=.
35+
36+
#+BEGIN_SRC sed :in-file test2.txt :cmd-line "-i.backup"
3437
s/test/tested again/
3538
#+END_SRC

0 commit comments

Comments
 (0)