Modify

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:

Description

See this:

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

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
cfg02d2da
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
_test.@section[0]=section

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

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


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

 
Note: See TracTickets for help on using tickets.