m4-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: confused by m4 esyscmd expansion ... how to 'escape' nested quotes?


From: Stepan Kasal
Subject: Re: confused by m4 esyscmd expansion ... how to 'escape' nested quotes?
Date: Sun, 7 Aug 2005 09:04:29 +0200
User-agent: Mutt/1.4.1i

Hello,

On Sat, Aug 06, 2005 at 09:55:30AM -0700, OpenMacNews wrote:
> (b) this, does NOT work:
> 
>       define([MY_IP_ADDR],
>       esyscmd([dig @]MY_NS_NAME MY_HOST_NAME[ | awk 'index($ 0, 
>       "]MY_HOST_NAME[") == 1 {printf("%s", $ 5) }']))
> 
> resulting in:
> 
>       -->  dig: couldn't get address for 'MY_NS_NAME': not found

a typo: MY_NS_NAME should be MY_DNS_NAME.

Sorry,
        Stepan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]