guile-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Proposal] Why not add a "shell" procedure?


From: Thien-Thi Nguyen
Subject: Re: [Proposal] Why not add a "shell" procedure?
Date: Sat, 12 May 2012 16:22:23 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux)

() Nala Ginrut <address@hidden>
() Sat, 12 May 2012 20:30:21 +0800

   (pwd)
   ==> "/home/nalaginrut/Project/gnulib-20100109+stable"

   Any comment?

For this particular case, you can use instead ‘getcwd’, which
is builtin.  See also ‘shell-command->string’ and friends:

 http://www.gnuvola.org/software/ttn-do/ttn-do.html.gz

Tangentially, Guile 1.4.x has "guile-tools gxsed", a sed
implementation in Scheme:

 http://www.gnuvola.org/software/guile/doc/guile_002dtools-gxsed.html

It needs some work to be compatible w/ Guile 1.8 and 2.0
(i.e., to use 2-arg ‘eval’), but the core transform is sound.
IIRC it PASSed around 60% of the GNU sed 4.2 "make check".

For Emacsoid in-process editing, see also module (ttn-do mogrify),
also in ttn-do.  I (and my daemons) use it every day w/ Guile 1.8.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]