Re: Shell-escape a string

2015-03-08 Thread Mark A. Hershberger
-pipe* is analogous to system*‎, in that it doesn't use a shell. > Regards, > Neil > ‎ > Original Message > From: Mark A. Hershberger > Sent: Saturday, 7 March 2015 15:09 > To: dsm...@roadrunner.com > Cc: guile-user@gnu.org > Subject: Re: Shell-escape a strin

Re: Shell-escape a string

2015-03-08 Thread neil
: dsm...@roadrunner.com Cc: guile-user@gnu.org Subject: Re: Shell-escape a string Mark A. Hershberger writes: > dsm...@roadrunner.com writes: > >> How about using system* instead and pass your arguments directly instead >> of letting a shell (mis)interpret them? > > Thanks fo

Re: Shell-escape a string

2015-03-07 Thread Mark A. Hershberger
Mark A. Hershberger writes: > dsm...@roadrunner.com writes: > >> How about using system* instead and pass your arguments directly instead >> of letting a shell (mis)interpret them? > > Thanks for pointing this out. It looks like the right solution. Actually, upon reflection, I think I need to u

Re: Shell-escape a string

2015-03-07 Thread Mark A. Hershberger
dsm...@roadrunner.com writes: > How about using system* instead and pass your arguments directly instead > of letting a shell (mis)interpret them? Thanks for pointing this out. It looks like the right solution. -- Mark A. Hershberger NicheWork LLC 717-271-1084

Re: Shell-escape a string

2015-03-07 Thread Taylan Ulrich Bayırlı/Kammer
"Mark A. Hershberger" writes: > 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: Shell-escape a string

2015-03-06 Thread dsmich
"Mark A. Hershberger" 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 utils) and

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 names