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'