You can try the :q modifier to prevent word splitting. For example:
Code:
#!/bin/tcsh
set cmd1 = "apple orange"
set cmd2 = "tea coffee"
set cmd_list = ($cmd1:q $cmd2:q)
foreach cmd ($cmd_list:q)
echo "cmd_list is $cmd"
end
should do the trick. Please, note that this cannot be called
array (as far as I know the C-shell does not manage arrays) but a
list. Hope this helps.
Ah... and welcome to LinuxQuestions!