emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Bjarte Johansen <bjarte.johansen@gmail.com>
To: emacs-orgmode@gnu.org
Cc: Brad Knotwell <b.knotwell@f5.com>
Subject: Fwd: minor ob-sed.el patch for org-mode
Date: Wed, 4 Apr 2018 13:28:53 +0200	[thread overview]
Message-ID: <821D4BB7-CD0D-4A6E-AE61-A6E572F13E5E@gmail.com> (raw)
In-Reply-To: 67576C6A-2FA3-4416-A8F1-08BFD4A395BC@contoso.com

[-- Attachment #1: Type: text/plain, Size: 139 bytes --]

Hello,

This is a minor patch suggested by Brad Knotwell so that ob-sed can support BSD sed and not only GNU sed.

Regards,
Bjarte


[-- Attachment #2: 0002-ob-sed-Use-f-instead-of-file-to-support-BSD-sed.patch --]
[-- Type: application/octet-stream, Size: 1139 bytes --]

From 7609ee600dff8ed7b2f528f7ec15e167ee2b8d3b Mon Sep 17 00:00:00 2001
From: Brad Knotwell <b.knotwell@f5.com>
Date: Wed, 4 Apr 2018 13:19:32 +0200
Subject: [PATCH] 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>
---
 lisp/ob-sed.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lisp/ob-sed.el b/lisp/ob-sed.el
index b2c80f88c..ca8b7545f 100644
--- a/lisp/ob-sed.el
+++ b/lisp/ob-sed.el
@@ -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))
 			 " ")))
-- 
2.15.1 (Apple Git-101)


       reply	other threads:[~2018-04-04 11:28 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <67576C6A-2FA3-4416-A8F1-08BFD4A395BC@contoso.com>
2018-04-04 11:28 ` Bjarte Johansen [this message]
2018-04-04 12:15   ` Fwd: minor ob-sed.el patch for org-mode Marco Wahl
2018-04-05 14:49   ` Nicolas Goaziou

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=821D4BB7-CD0D-4A6E-AE61-A6E572F13E5E@gmail.com \
    --to=bjarte.johansen@gmail.com \
    --cc=b.knotwell@f5.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).