[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: how to do not expand envir var
From: |
Brendan Strejcek |
Subject: |
Re: how to do not expand envir var |
Date: |
Fri, 7 Nov 2003 15:30:17 -0600 |
User-agent: |
Mutt/1.3.28i |
Yaroslav Halchenko wrote:
> editfiles:
> openpbs::
> { /etc/profile
> AppendIfNoSuchLine "export PATH=$PATH:/opt/pbs/bin"
> }
>
> but when I run it it expands PATH before puting really $PATH inside
> the /etc/profile. I don't want that... \ing $ didn't help. What would
> be a proper way?
http://www.cfengine.org/docs/cfengine-Reference.html#Special%20variables
ie:
AppendIfNoSuchLine "export PATH=${dollar}PATH:/opt/pbs/bin"
I have not tested this, but I think it should work.
-- Brendan