Opened 5 years ago

Closed 5 years ago

Last modified 4 years ago

#13398 closed defect (fixed)

uci: problem with underscore

Reported by: anonymous Owned by: developers
Priority: high Milestone: Barrier Breaker 14.07
Component: packages Version: Trunk
Keywords: Cc:


See this:

root@OpenWrt:~# touch /etc/config/test
root@OpenWrt:~# uci show test
root@OpenWrt:~# uci add test section
root@OpenWrt:~# uci set test.@section[-1].option=abcd
root@OpenWrt:~# uci commit test
root@OpenWrt:~# uci get test.@section[-1].option
root@OpenWrt:~# uci show test

But if I add underscore to file name:

root@OpenWrt:~# rm /etc/config/_test 
root@OpenWrt:~# touch /etc/config/_test
root@OpenWrt:~# uci show _test
root@OpenWrt:~# uci add _test section
root@OpenWrt:~# uci set _test.@section[-1].option=abcd
root@OpenWrt:~# uci commit _test
root@OpenWrt:~# uci get _test.@section[-1].option
uci: Entry not found
root@OpenWrt:~# uci show _test

Option is not set, if file name begin of underscore.

Attachments (0)

Change History (3)

comment:2 Changed 5 years ago by jow

  • Resolution set to fixed
  • Status changed from new to closed

comment:3 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

as closed .
The resolution will be deleted. Next status will be 'reopened'.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.