免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1378 | 回复: 2
打印 上一主题 下一主题

请教$CONNECT "$@"里的"$@"是什么意思? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2003-05-27 11:26 |只看该作者 |倒序浏览
$CONNECT "$@" > /dev/null 2>&1 &
CONNECT_PID=$! 这个"$@"和"$!"是什么意思呀?

论坛徽章:
0
2 [报告]
发表于 2003-05-27 12:02 |只看该作者

请教$CONNECT "$@"里的"$@"是什么意思?


  1. @      
  2. Expands to the positional parameters, starting from one.  When
  3. the expansion occurs within double-quotes, each positional param-
  4. eter expands as a separate argument.  If there are no positional
  5. parameters, the expansion of @ generates zero arguments, even
  6. when @ is double-quoted.  What this basically means, for example,
  7. is if $1 is ``abc'' and $2 is ``def ghi'', then "$@" expands to
  8. the two arguments:

  9.                    "abc"   "def ghi"

  10. !      
  11. Expands to the process ID of the most recent background command executed from the current shell.  For a pipeline, the process ID is that of the last command in the pipeline.

复制代码

论坛徽章:
0
3 [报告]
发表于 2003-05-27 12:28 |只看该作者

请教$CONNECT "$@"里的"$@"是什么意思?

[ 特定s h e l l变量 ]
$# 传递到脚本的参数个数
$* 以一个单字符串显示所有向脚本传递的参数。与位置变量不同,此选项参数可超过9个
$$ 脚本运行的当前进程I D号
$! 后台运行的最后一个进程的进程I D号
$@ 与$ #相同,但是使用时加引号,并在引号中返回每个参数
$- 显示s h e l l使用的当前选项,与s e t命令功能相同
$? 显示最后命令的退出状态。0表示没有错误,其他任何值表明有错误。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP