all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: brian powell <briangpowellms@gmail.com>
To: emacs-orgmode@gnu.org
Subject: [OT] Babel user queries like SH "read CONFIRM"
Date: Wed, 8 Feb 2012 11:20:43 -0500	[thread overview]
Message-ID: <CAFm0skFg32rwou7T+gEje2enj0qmHXEP0crgF2w_v8cVWGZ-xw@mail.gmail.com> (raw)

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

* Is there a simple way in BABEL to interact/query a user--something like
this won't work:

#+begin_src sh
cat blah-install.sh
echo -n " Sure you want to run this install script code to install
BlahSoftware? (y/n): "
read CONFIRM
  case $CONFIRM in
    y|Y) sh blah-software-install.sh;;
    n|N)
      echo "
ERROR 5: User declined the agreement.
"
      exit
      ;;
    *) echo "
That is not vaild input and/or user declined to run install script.
"
  esac
#+end_src

[-- Attachment #2: Type: text/html, Size: 967 bytes --]

             reply	other threads:[~2012-02-08 16:20 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-08 16:20 brian powell [this message]
2012-02-08 16:46 ` [OT] Babel user queries like SH "read CONFIRM" Eric Schulte

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=CAFm0skFg32rwou7T+gEje2enj0qmHXEP0crgF2w_v8cVWGZ-xw@mail.gmail.com \
    --to=briangpowellms@gmail.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 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.