#19578: uci show / regression / output contains single quotes
------------------------+------------------------
  Reporter:  bittorf@…  |      Owner:  developers
      Type:  defect     |     Status:  closed
  Priority:  normal     |  Milestone:
 Component:  packages   |    Version:  Trunk
Resolution:  not_a_bug  |   Keywords:
------------------------+------------------------

Comment (by jow):

 Alternative examples:

 {{{
 local i=0
 local switchdev

 while switchdev="$(uci -q get network.@switch_vlan[$i].device)"; do
   if [ "$switchdev" = switch0 ]; then
     # blah
     break
   fi
   : $((i++))
 done
 }}}

 {{{
 local i=0
 local ip

 while ip="$(uci -q get network.@alias[$i].ipaddr)"; do
   if [ "$ip" = 10.10.43.33 ]; then
     # already used
     break
   fi
   : $((i++))
 done
 }}}

--
Ticket URL: <https://dev.openwrt.org/ticket/19578#comment:4>
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