procd_append_param error "Your 1st message here!\x0b"
procd_append_param error "Your 2nd message here!\x0b"
should not be accepted (but they are) -
root@pWPW10-1:~# json_get_values _a "errors"
root@pWPW10-1:~# echo -e $_a
Your 1st message here!
Your 2nd message here!
root@pWPW10-1:~# echo $_a
Your 1st message here!\x0b Your 2nd message here!\x0b
root@pWPW10-1:~# ubus -v call service list '{"name": "blah", "verbose": true}'
{
"blah": {
"instances": {
"instance1": {
"running": false,
"term_timeout": 5,
"exit_code": 0,
"errors": [
"Your 1st message here!\\x0b",
"Your 2nd message here!\\x0b"
]
}
},
"triggers": [
]
}
}
root@pWPW10-1:~#
Is this the expected behaviour?
N.B. - coding the UNICODE equivalent, \u000b (which echo does not 'recognise'), is also accepted