📄 partition-perm
字号:
#!/bin/sh# Make sure permissions are preserved when moving from one partition to another.if test "$VERBOSE" = yes; then set -x mv --versionfi. $srcdir/setup. $srcdir/../envvar-check. $srcdir/../lang-defaultif test -z "$other_partition_tmpdir"; then exit 77fipwd=`pwd`dir=p-perm-$$trap "cd $pwd; rm -rf $dir $other_partition_tmpdir" 0 1 2 3 15mkdir $dircd $dir: > filechmod a=rwx fileumask 077mv file $other_partition_tmpdirfail=0test -f file && fail=1test -f $other_partition_tmpdir/file || fail=1# This would have failed with the mv from fileutils-4.0i.set _ `ls -l $other_partition_tmpdir/file`; shift; mode=$1test "$mode" = "-rwxrwxrwx" || fail=1exit $fail
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -