Re: [Nut-upsuser] Formal definition of a UPS name

2022-04-05 Thread Jim Klimov via Nut-upsuser
Did not find a definition in the docs quickly... I think Arnaud mentioned that there was (planned to be?) some constraint, but looking at the parsing code it seems that de-facto we check for (and strip away) the opening and closing brackets in the first token after `parseconf` separated the lines

Re: [Nut-upsuser] Formal definition of a UPS name

2022-04-05 Thread gene heskett
On Tuesday, 5 April 2022 09:40:41 EDT Roger Price wrote: > Do we have a formal definition of a UPS name? For example: > >upsname = "A-Ca-c-_"+ with a minimum of 1 and a maximum of 15 > characters > > This means that a UPS may be called "_" > > Is that acceptable? Must the initial characte

Re: [Nut-upsuser] Formal definition of a UPS name

2022-04-05 Thread Roger Price
On Tue, 5 Apr 2022, Roger Price wrote: Do we have a formal definition of a UPS name? Should a system administrator be able to name a UPS "Bébé" or "罗杰-1" ? Roger___ Nut-upsuser mailing list Nut-upsuser@alioth-lists.debian.net https://alioth-lists.de

Re: [Nut-upsuser] Formal definition of a UPS name

2022-04-05 Thread Roger Price
On Tue, 5 Apr 2022, Roger Price wrote: Do we have a formal definition of a UPS name? For example: upsname = "A-Ca-c-_"+ with a minimum of 1 and a maximum of 15 characters I should have written upsname = "A-Ca-c0-9-_"+ with a minimum of 1 and a maximum of 15 characters where the initial

[Nut-upsuser] Formal definition of a UPS name

2022-04-05 Thread Roger Price
Do we have a formal definition of a UPS name? For example: upsname = "A-Ca-c-_"+ with a minimum of 1 and a maximum of 15 characters This means that a UPS may be called "_" Is that acceptable? Must the initial character always be a letter? Roger