starquoted2.tests

来自「适合新手读的c源代码,包含linux下ls、echo、ping等常用工具的源代码」· TESTS 代码 · 共 15 行

TESTS
15
字号
if test $# != 0; then    exec "$THIS_SH" "$0"fi# No params!for a in "$*"; do echo Should be printed; donefor a in "$@"; do echo Should not be printed; done# Yes, believe it or not, bash is mesmerized by "$@" and stops# treating "" as "this word cannot be expanded to nothing,# but must be at least null string". Now it can be expanded to nothing.for a in "$@"""; do echo Should not be printed; donefor a in """$@"; do echo Should not be printed; donefor a in """$@"''"$@"''; do echo Should not be printed; donefor a in ""; do echo Should be printed; done

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?