unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* bug#23500: Manual:4.3 Guile Scripting: Show to a layman that Guile can invoke shell commands, which are common in bash scripts.
@ 2016-05-09 22:48 Evan Davis
  2017-02-28 15:23 ` Andy Wingo
  0 siblings, 1 reply; 2+ messages in thread
From: Evan Davis @ 2016-05-09 22:48 UTC (permalink / raw)
  To: 23500

In §4.3 (Guile Scripting) please mention §7.2.7 (Processes), or at
least the system/system* and open-pipe procedures.  Maybe include an
example of a guile script invoking shell commands, as is common in
bash.  As a layman, the manual's scripting section left me unsure
whether Guile could easily replace my typical bash scripts, and I
needed further help from Wingo on <irc://irc.freenode.net/guile>.





^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#23500: Manual:4.3 Guile Scripting: Show to a layman that Guile can invoke shell commands, which are common in bash scripts.
  2016-05-09 22:48 bug#23500: Manual:4.3 Guile Scripting: Show to a layman that Guile can invoke shell commands, which are common in bash scripts Evan Davis
@ 2017-02-28 15:23 ` Andy Wingo
  0 siblings, 0 replies; 2+ messages in thread
From: Andy Wingo @ 2017-02-28 15:23 UTC (permalink / raw)
  To: Evan Davis; +Cc: 23500-done

On Tue 10 May 2016 00:48, Evan Davis <erdavis7@gmail.com> writes:

> In §4.3 (Guile Scripting) please mention §7.2.7 (Processes), or at
> least the system/system* and open-pipe procedures.  Maybe include an
> example of a guile script invoking shell commands, as is common in
> bash.  As a layman, the manual's scripting section left me unsure
> whether Guile could easily replace my typical bash scripts, and I
> needed further help from Wingo on <irc://irc.freenode.net/guile>.

Tx for the report.  Added this text to the end of the section:

  Finally, seasoned scripters are probably missing a mention of
  subprocesses.  In Bash, for example, most shell scripts run other
  programs like @code{sed} or the like to do the actual work.

  In Guile it's often possible get everything done within Guile itself, so
  do give that a try first.  But if you just need to run a program and
  wait for it to finish, use @code{system*}.  If you need to run a
  sub-program and capture its output, or give it input, use
  @code{open-pipe}.  @xref{Processes}, and @xref{Pipes}, for more
  information.

Andy





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-02-28 15:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-05-09 22:48 bug#23500: Manual:4.3 Guile Scripting: Show to a layman that Guile can invoke shell commands, which are common in bash scripts Evan Davis
2017-02-28 15:23 ` Andy Wingo

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).