This is the mail archive of the guile@cygnus.com mailing list for the guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: guile and stdin


ttn@netcom.com writes:

> Dirk Herrmann writes:
> 
>  > I just realized that when piping scheme commands through guile, guile
>  > always prints out the prompt. Is there a method to avoid this and make
>  > guile handle standard input as an ordinary file?
> 
> try
> 
> (set-repl-prompt! "")
> 
> to zonk the prompt.

This does not do away with the printing part of the repl.  Better use

    echo whatever | guile -s /dev/stdin

or equivalent.