Wrong tokenize of string
For extraction of app version from command output
#!/bin/bash
# GNU bash, version 4.3.46
string='Version: 19.08.19-14:25'
IFS=" -:" set -- $string
echo $2
I expect that $2
will have value 19.08.19
. But result is 19.08.19 14 25
.