Re: Shell-escape a string

2015-03-06 Thread dsmich
Mark A. Hershberger m...@nichework.com wrote: Is there a piece of standard code or a library that I can use to escape a string so it is safe to pass to bash? Specifically, I have submitted this bit[1] to add deletion of duplicate messages to a guile script included with mu (maildir

advice on how to use syntax transformers

2015-03-06 Thread Federico Beffa
Hi, I'm writing to ask for help in understanding syntax transformers. Specifically, I'm trying to construct a function of the following form (define (key-value meta) (match meta (() '()) name) value) rest ...) value) (((k value) rest ...) (key-value (cdr meta)))

Shell-escape a string

2015-03-06 Thread Mark A. Hershberger
Is there a piece of standard code or a library that I can use to escape a string so it is safe to pass to bash? Specifically, I have submitted this bit[1] to add deletion of duplicate messages to a guile script included with mu (maildir utils) and now we're looking at how to escape the file

Re: advice on how to use syntax transformers

2015-03-06 Thread Federico Beffa
On Fri, Mar 6, 2015 at 4:54 PM, Panicz Maciej Godek godek.mac...@gmail.com wrote: I think that the following code (without additional syntax transformers) should work for you: (define (key-value meta key) (match meta (() '()) ? (lambda(x) (equal? x key))) value) rest ...)