Closed SergeyLee closed 7 years ago
Notes: Problem is in ProfileEditCommand/SetAttributeOperation buildOperation() method.
When we use option value as --value=0{2}[1-9][0-9][0-9]{9,10} then we get args from Twiddle main method like this:
execute args: [[resTable, resProfile, --set, --name=Info, --value=0{2}[1-9][0-9][0-9]9, --value=0{2}[1-9][0-9][0-9]10]]
So we have problem with Getopt. I did not find any info about using curly brackets in getopt arguments.
this is bash tweaking argument before passing into command [root@restcomm ~]# echo 0{2}[1-9][0-9][0-9]{9,10} 0{2}[1-9][0-9][0-9]9 0{2}[1-9][0-9][0-9]10 [root@restcomm ~]#
Brace expansion -> http://wiki.bash-hackers.org/syntax/expansion/brace
Ok. With curly braces we have Bash Brace expansion. So we can only update twiddle doc for this case.
This problem causes when attribute value has braces and is not quotation.
For example: this command is setting wrong value
but this command works well