I looked at the rest of the source I was modifying and saw that open-pipe* was used for md5sum, so
I ended up using that.
Thanks,
Mark.
Needing the output is an independent concern, and means you should use (ice-9 popen) instead of system.
open-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: address@hidden
Cc: address@hidden
Subject: Re: Shell-escape a string
Mark A. Hershberger writes:
> address@hidden 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 use Taylan's shell escape
method since I need the output.
--
Mark A. Hershberger
NicheWork LLC
717-271-1084
--
Mark A. Hershberger
NicheWork LLC
717-271-1084