Preparing strings for Shell

Devin Asay devin_asay at
Fri Nov 21 19:34:46 EST 2008

On Nov 21, 2008, at 5:06 PM, Mark Smith wrote:

> Devin, I've always found that quoting things like filepaths sems to
> do the trick - is there some problem that quoting doesn't solve?

I'll try that. It may be all I need. Thanks for the feedback.


> On 22 Nov 2008, at 00:02, Devin Asay wrote:
>> Hi all,
>> We have a URLencode function to prepare strings for posting to an
>> http server. Is there anything comparable for formatting strings to
>> execute as a shell command? (I'm on OSX). For example, spaces in
>> file paths have to be escaped with a backslash (\), as do other
>> characters. What's the best practice for this?

Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

More information about the use-livecode mailing list