📄 backup-is-src
字号:
#!/bin/sh# Force mv to use the copying code.if test "$VERBOSE" = yes; then set -x mv --versionfi. $srcdir/setupif test -z "$other_partition_tmpdir"; then exit 77fia="$other_partition_tmpdir/a"a2="$other_partition_tmpdir/a~"framework_failure=0rm -f $a $a2 || framework_failure=1echo a > $a || framework_failure=1echo a2 > $a2 || 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 --b=simple $a2 $a > out 2>&1 && fail=1sed \ -e "s,mv:,XXX:," \ -e "s,$a,YYY," \ -e "s,$a2,ZZZ," \ out > out2cat > exp <<\EOFXXX: backing up `YYY' would destroy source; `ZZZ' not movedEOFcmp out2 exp || fail=1rm -fr out out2 exp $a $a2 $other_partition_tmpdirexit $fail
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -