guile-user
[Top][All Lists]
Advanced

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

Re: Shelling


From: Damien Mattei
Subject: Re: Shelling
Date: Thu, 18 Apr 2024 19:56:10 +0200

hello Tom,
i use sometimes guile as a shell script, your file should start with:

#!/usr/local/bin/guile -s
!#

and after the scheme code
for example :

(define stderr (current-error-port))

; parse the input file from command line
(define cmd-ln (command-line))
(define args (cdr cmd-ln))

(when (member "--help" options)
....

etc

regards,
Damien

On Thu, Apr 18, 2024 at 6:45 PM Tom Whitcomb via General Guile related
discussions <guile-user@gnu.org> wrote:

> Hi.
> I need to write a set of shell scripts and I would really like to do it
> with a lisp.  Is that a use case for guile or should I move towards
> scheme/scsh?
> Tom
>


reply via email to

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