[nut-Bugs][313206] condensed notation may lead to wrong result
nut-bugs at alioth.debian.org
nut-bugs at alioth.debian.org
Mon Mar 12 14:37:50 UTC 2012
Bugs item #313206, was changed at 2011-07-06 16:08 by Frederic BOHE
You can respond by visiting:
https://alioth.debian.org/tracker/?func=detail&atid=411542&aid=313206&group_id=30602
Status: Open
Priority: 1
Submitted By: Frederic BOHE (fbohe-guest)
Assigned to: Nobody (None)
Summary: condensed notation may lead to wrong result
Category: None
Group: None
>Resolution: Fixed
Initial Comment:
Trying this in ups.conf
product=Protection Station
it seems to be interpreted as "product" is "Protection", skipping the trailing "Station"
using this seems to work
product<space>=<space>"Protection Station"
----------------------------------------------------------------------
>Comment By: Frederic BOHE (fbohe-guest)
Date: 2012-03-12 15:37
Message:
Should be fixed by r3487
----------------------------------------------------------------------
Comment By: Arnaud Quette (aquette)
Date: 2011-09-16 19:14
Message:
Fred misunderstood the issue...
quotes are indeed necessary for multiple words values.
The issue is the related to spacing wrt the space sign.
1) working version, as expected:
* desc in ups.conf
desc = "foo bar"
* "upsc -L" output:
simu: foo bar
2) not working version #1 (no space before/after the equal):
* desc in ups.conf
desc="foo bar"
* "upsc -L" output:
simu: "foo
2) not working version #1 (no space before/after the equal):
* desc in ups.conf
desc="foo bar"
* "upsc -L" output:
simu:
This needs investigation.
----------------------------------------------------------------------
Comment By: Charles Lepple (clepple-guest)
Date: 2011-07-07 05:20
Message:
>From http://www.networkupstools.org/docs/user-manual.chunked/ar01s06.html
"If you need to set a value to something containing spaces, it has to be contained within "quotes" to keep the parser from splitting up the line..."
----------------------------------------------------------------------
You can respond by visiting:
https://alioth.debian.org/tracker/?func=detail&atid=411542&aid=313206&group_id=30602
More information about the NUT-tracker
mailing list