sh: allow passing references through STDIN of a shell script
commit03aa327d7950176e50ebb779c3f153bb9192dea5
authorEric Schulte <schulte.eric@gmail.com>
Wed, 25 May 2011 15:50:36 +0000 (25 09:50 -0600)
committerEric Schulte <schulte.eric@gmail.com>
Wed, 25 May 2011 15:52:08 +0000 (25 09:52 -0600)
tree82574f70a708e83ee03629dd1ba15570a728d7dd
parentbd91803d0d1d88e94a059f28b5cccb7e969d0042
sh: allow passing references through STDIN of a shell script

* lisp/ob-sh.el (ob-ref): Uses ob-ref to resolve the value of the
  :stdin header argument.
  (org-babel-execute:sh): Use the :stdin header argument.
  (org-babel-sh-var-to-sh): Split the bulk of this function off into a
  new sub-function.
  (org-babel-sh-var-to-string): New function for converting elisp
  values to strings that make sense for parsing with sh.
  (org-babel-sh-evaluate): Adding "stdin" option to session and
  external evaluation options.
lisp/ob-sh.el