From: Eric Schulte <schulte.eric@gmail.com>
To: Samuel Wales <samologist@gmail.com>
Cc: emacs-orgmode@gnu.org, Eric Schulte <schulte.eric@gmail.com>
Subject: Re: [babel] shell does not unquote
Date: Sun, 09 Feb 2014 20:18:19 -0700 [thread overview]
Message-ID: <87wqh364g4.fsf@gmail.com> (raw)
In-Reply-To: <CAJcAo8syyXEio6byxxSO2MRHtYzELaXdeoxkiST+Pe05UNBagQ@mail.gmail.com> (Samuel Wales's message of "Sat, 8 Feb 2014 18:39:19 -0700")
Samuel Wales <samologist@gmail.com> writes:
> hi eric,
>
> the object is to make the code inside a babel shell block as similar
> to a real shell script as possible. also, calling it using #+call
> should be like calling it from another shell script.
>
> this isn't possible in babel at present.
>
> the script cannot use "$@" for its positional parameters. it could
> use <<noweb>>, but that requires the creation of an extraneous block
> merely to do a call, instead of supplying the value in the call line.
>
A couple of languages already support a :cmdline header argument. I've
just added shell block support for :cmdline, so the following is now
possible.
#+begin_src sh :cmdline "foo bar baz"
echo $2
#+end_src
#+RESULTS:
: bar
>
> if making this possible is not desirable, then i will not request it,
> but i wanted to explain why this object is not achieved with existing
> babel options that i am aware of.
>
I hope the above is sufficient, if not I'm not personally able to do
much more on this front, although I'm always happy to review patches.
Best,
>
> thanks.
>
> samuel
--
Eric Schulte
https://cs.unm.edu/~eschulte
PGP: 0x614CA05D
prev parent reply other threads:[~2014-02-10 3:20 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-05 5:49 [babel] shell does not unquote Samuel Wales
2014-02-06 0:49 ` Eric Schulte
2014-02-06 8:28 ` Samuel Wales
2014-02-06 20:12 ` Eric Schulte
2014-02-06 21:55 ` Samuel Wales
2014-02-07 2:13 ` Eric Schulte
2014-02-09 1:39 ` Samuel Wales
2014-02-10 3:18 ` Eric Schulte [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87wqh364g4.fsf@gmail.com \
--to=schulte.eric@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=samologist@gmail.com \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.