kvget always include new-line character
Closed this issue · 0 comments
damphat commented
small problem
"bob" has 3 chars, but kvget return string of 4 chars
[kv-bash]# source ./kv-bash
[kv-bash]# kvset name "bob"
[kv-bash]# kvget name > output
[kv-bash]# stat -c%s output
4
[root@localhost kv-bash]# rm -f output
The reason is kvget echo with a new-line character