📄 infloop
字号:
#!/bin/sh# show that the following no longer makes ls infloop# mkdir loop; cd loop; ln -s ../loop sub; ls -RLif test "$VERBOSE" = yes; then set -x ls --versionfi. $srcdir/../lang-defaultpwd=`pwd`tmp=infloop.$$trap 'status=$?; cd $pwd; rm -rf $tmp && exit $status' 0trap '(exit $?); exit' 1 2 13 15framework_failure=0mkdir $tmp || framework_failure=1cd $tmp || framework_failure=1mkdir loop || framework_failure=1ln -s ../loop loop/sub || framework_failure=1if test $framework_failure = 1; then echo 'failure in testing framework' 1>&2 (exit 1); exitfifail=0ls -RL loop 2>err | head -n 7 > out# With an inf-looping ls, out will contain these 7 lines:cat <<EOF > badloop:subloop/sub:subloop/sub/sub:EOFcmp out bad 2>/dev/null && fail=1(exit $fail); exit
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -