Closed enamp closed 2 years ago
if I understand correctly you proposal is not only to read the initial command string but also the arguments?
generally this should work as $CMD should be the same as $CMD[0], I have to check if CMD is already declared as an array.
yes, as noted in comment, split message in command and args
without a
there is no need in read
. it works just like CMD=$MESSAGE[0]
read into array