[OpenWrt-Devel] Using "-" in section names

Baptiste Jonglez bjonglez at illyse.org
Wed Aug 27 14:00:39 EDT 2014


On Wed, Aug 27, 2014 at 07:49:21PM +0200, Jo-Philipp Wich wrote:
> Hi,
> 
> yes there is a reason, the initial uci implementation was shell based
> and section names are part of generated variable names which must not
> contain dashes.

So, it shouldn't be necessary with the C implementation?

> Simply replacing dashes with underscores is not possible either as this
> would lead to ambiguous results.

Yes, I've got exactly this problem: the name of a section is supposed to
be a physical interface name.  But both "-" and "_" are valid characters
in the name of an interface on Linux, so it would be ambiguous to convert
one to the other.

> ~ Jow
> _______________________________________________
> openwrt-devel mailing list
> openwrt-devel at lists.openwrt.org
> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/openwrt-devel/attachments/20140827/97add014/attachment.sig>
-------------- next part --------------
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list