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

📄 force

📁 实战Linux编程的原代码,希望对学驱动的人能有所帮助
💻
字号:
#!/bin/sh# move a file onto itselfif test "$VERBOSE" = yes; then  set -x  mv --versionfiff=mvforceff2=mvforce2framework_failure=0rm -f $ff $ff2 || framework_failure=1echo force-contents > $ff || framework_failure=1ln $ff $ff2 || framework_failure=1if test $framework_failure = 1; then  echo 'failure in testing framework'  exit 1fi# Make sure we get English translations.. $srcdir/../lang-default# This mv command should exit nonzero.mv $ff $ff > out 2>&1 && fail=1cat > exp <<EOFmv: \`$ff' and \`$ff' are the same fileEOFcmp out exp || fail=1test `cat $ff` = force-contents || fail=1# This should succeed, even though the source and destination# device and inodes are the same.mv $ff $ff2 || fail=1rm -fr out exp $ff $ff2exit $fail

⌨️ 快捷键说明

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