Function: org-babel-sh-var-to-sh

org-babel-sh-var-to-sh is a byte-compiled function defined in ob-shell.el.gz.

Signature

(org-babel-sh-var-to-sh VAR &optional SEP HLINE)

Documentation

Convert an elisp value to a shell variable.

Convert an elisp var into a string of shell commands specifying a var of the same value.

Source Code

;; Defined in /usr/src/emacs/lisp/org/ob-shell.el.gz
(defun org-babel-sh-var-to-sh (var &optional sep hline)
  "Convert an elisp value to a shell variable.
Convert an elisp var into a string of shell commands specifying a
var of the same value."
  (concat "'" (replace-regexp-in-string
	       "'" "'\"'\"'"
	       (org-babel-sh-var-to-string var sep hline))
	  "'"))