[augeas-devel] [shellvars] value with spaces
Free Ekanayaka
free at 64studio.com
Fri Oct 17 10:55:28 UTC 2008
Hi,
the /etc/default/apmd file contains a variable with a space inside its
value:
APMD="--proxy-timeout 30"
and priting the variable with augtool results in:
~$ augtool print /files/etc/default/apmd/APMD
/files/etc/default/apmd/APMD = "\"--proxy-timeout 30\""
Now, if I try to set a new value, for example "--proxy-timeout 31",
this won't work, even if I escape the quotes:
~$ (echo set /files/etc/default/apmd/APMD "--proxy-timeout 31"; echo save)|augtool
augtool> Too many arguments for set
augtool> augtool>
~$ (echo set /files/etc/default/apmd/APMD "\"--proxy-timeout 31\""; echo save)|augtool
augtool> augtool> Saving failed
augtool>
Which is the right way to set values with spaces?
Thanks,
Free
More information about the augeas-devel
mailing list