[nut-Bugs][313206] condensed notation may lead to wrong result

nut-bugs at alioth.debian.org nut-bugs at alioth.debian.org
Fri Sep 16 17:14:58 UTC 2011


Bugs item #313206, was changed at 06/07/2011 16:08 by Arnaud Quette
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: None


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: Arnaud Quette (aquette)
Date: 16/09/2011 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: 07/07/2011 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