Don't modify the target value from the command input when creating a
commit38ddfa0ccaaf81a15093b4d3003c9b1428064072
authorBen Kibbey <bjk@luxsci.net>
Mon, 24 Sep 2007 00:17:52 +0000 (23 20:17 -0400)
committerBen Kibbey <bjk@luxsci.net>
Mon, 24 Sep 2007 00:17:52 +0000 (23 20:17 -0400)
tree8f1ab4268e99ef89af0adc749e6af41a511d3c9d
parent076f942d51fdd9253b8857646c4c93d597612beb
Don't modify the target value from the command input when creating a
target attribute. This fixes creating the target value and when the
actual target was changed the literal element path to the target was
being used. If the literal path is needed, the literal path should be
specified in the command. For example:

    attr set target some<TAB>path dest<TAB>path
    attr set target dest<TAB>path some<TAB>otherpath

Then "some<TAB>path" used to point to "dest<TAB>path" rather than follow
the target of "dest<TAB>path" because no target attribute was found in
"dest<TAB>path" originally and was modifying each element in the target
value of "some<TAB>path" to be a literal element.
src/commands.c
src/xml.c