[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Quoting or escaping when using exec
From: |
Alan DeKok |
Subject: |
Re: Quoting or escaping when using exec |
Date: |
Thu, 03 Mar 2011 20:40:34 +0100 |
User-agent: |
Thunderbird 2.0.0.24 (Macintosh/20100228) |
Moshe Cohen wrote:
> Hi,
> Let's say I want to have an exec action like this:
> <mailto:address@hidden>
> exec "/bin/bash -c 'mail -s "multi word subject" address@hidden
> <mailto:address@hidden> ' "
>
> This will not work because the quotes around the subject collide with
> the outer quotes.
> I have tried several types of escaping these quotes or single quotes,
> but have't found the way to do it.
> How can I escape quotes so the command is passed to the bash script
> properly?
$ man unlang
Alan DeKok.