I cannot set a variable with a whole command-string as following:
A="/bin/ps wwwaux"
for a in $A
do
echo "$a"
done
It assigns array instead of solid string someway.
My environment:
GNU/Linux, GNU bash, version 3.2.51(1)-release (x86_64-suse-linux-gnu)
/bin/ps wwwaux
into variableA
? – cuonglm May 29 '15 at 16:09