Ubuntu中文论坛
致力于Ubuntu中文推广
http://forum.ubuntu.com.cn/
[问题] 怎样修改$1,而不改变$2, $3, ...?
http://forum.ubuntu.com.cn/viewtopic.php?t=25378
分页:
1
/
1
[问题] 怎样修改$1,而不改变$2, $3, ...?
发表于 :
2006-09-22 14:36
由
5451vs5451
用set $new1的话, $2, $3, ...的值就没有了。
发表于 :
2006-09-22 23:22
由
5451vs5451
找到一种办法
shift
set "$new1" "$@"