|
From: | OpenMacNews |
Subject: | Re: confused by m4 esyscmd expansion ... how to 'escape' nested quotes? |
Date: | Sun, 07 Aug 2005 00:46:12 -0700 |
hi stepan,
(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) }']))
argh. *&^*&! :-/ ok. i'll retry this in a bit ...as i DO have a working alternative -- though not as "tight" as your code -- i've moved on to trying to figure out arrays/stacks (another post: "how 2 manage arrays & stack conflicts in m4?")
thx! cheers, richard
[Prev in Thread] | Current Thread | [Next in Thread] |