#19539: uci / regression / lists contain wrong chars
------------------------+------------------------
  Reporter:  bittorf@…  |      Owner:  developers
      Type:  defect     |     Status:  new
  Priority:  normal     |  Milestone:
 Component:  packages   |    Version:  Trunk
Resolution:             |   Keywords:
------------------------+------------------------

Comment (by ferry@…):

 Replying to [comment:8 bittorf@…]:
 > please close this ticket, i see no good way for fixing it - the new
 behaviour is correct - the old is just wrong and we have to change the way
 we interact with uci. my first idea was to output uci-vars with space like
 this:
 >
 > {{{
 > root@box:~ for OBJ in a b1\ b2\ b3 c; do echo $OBJ; done
 > a
 > b1 b2 b3
 > c
 > }}}
 >
 > but this has issues when uses in vars:
 >
 > {{{
 > root@box:~ v1=a
 > root@box:~ v2=b1\ b2\ b3
 > root@box:~ v3=c
 > root@box:~ for OBJ in $v1 $v2 $v3; do echo $OBJ; done

 This should be
 {{{
 root@box:~ for OBJ in "$v1" "$v2" "$v3"; do echo "$OBJ"; done
 }}}

 Variables should always be quoted

 > a
 > b1
 > b2
 > b3
 > c
 > }}}

--
Ticket URL: <https://dev.openwrt.org/ticket/19539#comment:9>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets

Reply via email to