ob-sed: Use -f instead of --file to support BSD sed

lisp/ob-sed.el (org-babel-execute:sed): Change file flag to "-f"
instead of "--file" to support BSD sed as well.

Signed-off-by: Bjarte Johansen <bjarte.johansen@gmail.com>
This commit is contained in:
Brad Knotwell 2018-04-04 13:19:32 +02:00 committed by Nicolas Goaziou
parent befc92b9c0
commit 8e5d74ca4c
1 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@
;; Author: Bjarte Johansen
;; Keywords: literate programming, reproducible research
;; Version: 0.1.0
;; Version: 0.1.1
;; This file is part of GNU Emacs.
@ -79,7 +79,7 @@ function is called by `org-babel-execute-src-block'."
(cmd (mapconcat #'identity
(remq nil
(list org-babel-sed-command
(format "--file=\"%s\"" code-file)
(format "-f \"%s\"" code-file)
cmd-line
in-file))
" ")))