Stefan Israelsson Tampe <stefan.ita...@gmail.com> writes: > Hi, > > I'm very used to take the standart output and pipe it to grep and friends. > So I searched for this feature and I think scsh is the correct way to make > this happen. But it have been bitrotted. > > So I've hacked the sorces to. > > Use guile syntax-define and cut out defmacro and friends > Yay for getting rid of defmacro!
> Use guile modules whenever possible keeping the interface as > intact as possible, e.g use, > > (ice-9 optargs) > (ice-9 regexp) > (srfi srfi-9) > (srfi srfi-9 gnu) > > In stead of the scsh bag of software for these cases. > > There are a few issues that I found > 1. the macro run uses unquote out of a visble backquote and guile > barfs > Please provide a more detailed explanation -- what exactly did you try and what was the exact error did message you did get? It is indeed possible to write macros that behave as its input was implicitly backquoted, e.g.: (define-syntax run (syntax-rules () ((_ command args ...) (begin (display (cons `command `(args ...))) (newline))))) scheme@(guile-user)> (run "echo" ,(+ 1 2)) (echo 3) > 2. I was not able to use the | symbol. > I just checked, and on both Guile HEAD (from recent git) and Guile 1.8.7, `|' is a valid symbol, although it is not valid according to R5RS and R6RS. What difficulties are you experiencing exactly? Regards, Rotty -- Andreas Rottmann -- <http://rotty.yi.org/>