摘要:
Detect bash script source vs. direct execution http://www.linuxquestions.org/questions/programming-9/detect-bash-script-source-vs-direct-execution-685193/如何判断脚本是在当前shell下运行还是在子shell下面运行?jan@jack:~/tmp> cat source.shfunction is_subshell() { test "`basename $1`" = "source.sh" &a 阅读全文
posted @ 2011-10-18 16:01 张武生 阅读(512) 评论(0) 推荐(0)
浙公网安备 33010602011771号