在csh如何给每个参数加上引号

在csh如何给每个参数加上引号

set idx = 1
while ($#argv >  0)
begin
set \$$i = '"\$$i""  #这一句好象有问题,大家有什么好的办法
done      
why csh? csh is not considered to be a good shell and bash is much better than csh. if u dont have some particular reason for using csh, give it up. bash is the most popular shell in the linux world, try it, and enjoy it.       
csh 的语法好像很"诡异"的样子,不习惯
复制内容到剪贴板
代码:
[color=blue]csh %[/color] set var = "Hello, world"
[color=blue]csh %[/color] echo "$var"
Hello, world
[color=blue]csh %[/color] echo "\"$var\""
tcsh: Unmatched ".
[color=blue]csh %[/color] echo '"'"$var"'"'
"Hello, world"
[color=blue]csh %[/color]