摘要: shell脚本中变量$0表示命令本身 可以表示软连接 shell 变量 小括号只能影响小括号中的变量 因为小括号开启子shell 大括号影响括号外面的变量 不开启子shell [root@liang bin 11:39:32]#x=1;echo "pid=$$";(echo "subpid=$$"; 阅读全文
posted @ 2019-04-04 22:45 Meteor&Shower 阅读(1596) 评论(0) 推荐(0) 编辑