I have beat this enough and don't get what should have been a very simple thing to do. I build a variable;
Code:
CLIST=java,lua,python,php,perl,ruby,tcl
CLIST will be used by another bash script but I need to replace the commas with a space. I can pass the CLIST contents to this other script variable with no problem. When the other script is run it shows this;
Code:
list='java,lua,python,php,perl,ruby,tcl'
But that script won't use them because of the commas. So I figured this should do the job at replacing those commas with a space (what the other script really wants);
Code:
CLIST="$(echo $CLIST | sed 's:,: :g')"
In my mind that should have worked but it doesn't. The other script output get is;
I don't understand why everything after "java" gets cut off.