I am trying to store words from an input as parameters with
read -p as follows :
read -p "Enter your command: " cmd arg1 arg2
With this, $cmd contains all 3 inputs separated by spaces, $arg1 and $arg2 are empty. Any idea why?