ob-sed-test: Make the tests pass on BSD systems, such as macOS

* testing/examples/ob-sed-test.org: Fix BSD sed incompatibility
This commit is contained in:
Rudolf Adamkovič 2022-10-06 21:14:17 +02:00 committed by Ihor Radchenko
parent 9b690462a3
commit 48ac65bea0
No known key found for this signature in database
GPG Key ID: 6470762A7DA11D8B
1 changed files with 4 additions and 1 deletions

View File

@ -30,6 +30,9 @@
:ID: E3C6A8BA-39FF-4840-BA8E-90D5C4365AB1
:END:
#+BEGIN_SRC sed :in-file test2.txt :cmd-line "-i"
/Note:/ Use =-i.backup= instead of just =-i= because the BSD =sed=,
unlike the GNU =sed=, requires =-i <extension>=.
#+BEGIN_SRC sed :in-file test2.txt :cmd-line "-i.backup"
s/test/tested again/
#+END_SRC