⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 i-1

📁 实战Linux编程的原代码,希望对学驱动的人能有所帮助
💻
字号:
#!/bin/shtest=i-1if test "$VERBOSE" = yes; then  set -x  rm --versionfipwd=`pwd`t0=`echo "$0"|sed 's,.*/,,'`.tmp;tmp=$t0/$$trap 'status=$?; cd $pwd; rm -rf $t0 && exit $status' 0trap '(exit $?); exit' 1 2 13 15test_failure=0mkdir -p $tmp || test_failure=1echo > $tmp/a || test_failure=1test -f $tmp/a || test_failure=1if test $test_failure = 1; then  echo 'failure in testing framework'  exit 1fiecho y > $tmp/$test.Iyecho n > $tmp/$test.Infail=0rm -i $tmp/a < $tmp/$test.In > /dev/null 2>&1 || fail=1# The file should not have been removed.test -f $tmp/a || fail=1rm -i $tmp/a < $tmp/$test.Iy > /dev/null 2>&1 || fail=1# The file should have been removed this time.test -f $tmp/a && fail=1rm -rf $tmp(exit $fail); exit

⌨️ 快捷键说明

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