bash expansion of ${@} as command

view full story

http://unix.stackexchange.com – I have a parent script while read cmd do nohup ./script ${cmd[@]} &>> log & done < ~/list that executes this child script while true do eval "${CMD[@]}" #${CMD[@]} #./panic done with this list of commands node ~/www/splash/app.js node ~/www/splash-two/app.js When the child script calls eval ${CMD[@]} it executes the way I expect running that command with no complaints but when I try to remove the eval and run the command using ${CMD[@]} It throws the error Error: Cannot find module '/home/rumplefraggle/SYS/RABBOT/~/www/splash/app.js' Now I thou (HowTos)