Browse Source

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

* testing/examples/ob-sed-test.org: Fix BSD sed incompatibility
Rudolf Adamkovič 1 year ago
parent
commit
48ac65bea0
1 changed files with 4 additions and 1 deletions
  1. 4 1
      testing/examples/ob-sed-test.org

+ 4 - 1
testing/examples/ob-sed-test.org

@@ -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