[augeas-devel] [Augeas] #336: Unrelated change to deleted whitespace in Shellvars
Augeas
trac at fedorahosted.org
Mon Apr 1 08:41:25 UTC 2013
#336: Unrelated change to deleted whitespace in Shellvars
----------------------+---------------------
Reporter: domcleal | Owner: lutter
Type: defect | Status: new
Priority: major | Milestone: next
Component: Augeas | Version: 1.0.0
Keywords: | Blocked By:
Blocking: |
----------------------+---------------------
I have the following input file, used with Shellvars:
{{{
# Options for ntpdate
OPTIONS="-p 2"
OPTIONS_SINGLE='-p 2'
# retry setting
# RETRIES: Number of retries before giving up
RETRIES=2
# Set to 'yes' to sync hw clock after successful ntpdate
#SYNC_HWCLOCK=no
EXAMPLE=foo
}}}
After a simple modification to add a new #comment node, the file's
whitespace is changed:
{{{
$ augload /tmp/b Shellvars
augtool> ins #comment after /files/b/#comment[1]
augtool> set /files/b/#comment[2] "OPTIONS: foo"
augtool> save
Saved 1 file(s)
$ cat /tmp/b
# Options for ntpdate
# OPTIONS: foo
OPTIONS="-p 2"
OPTIONS_SINGLE='-p 2'
# retry setting
# RETRIES: Number of retries before giving up
RETRIES=2
#Set to 'yes' to sync hw clock after successful ntpdate
# SYNC_HWCLOCK=no
EXAMPLE=foo
}}}
Notice the last three lines. The commented "SYNC_HWCLOCK=no" line has
been indented by a single space, and moved to the other side of a \n.
--
Ticket URL: <https://fedorahosted.org/augeas/ticket/336>
Augeas <http://augeas.net/>
a configuration API
More information about the augeas-devel
mailing list