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

📄 partition-perm

📁 实战Linux编程的原代码,希望对学驱动的人能有所帮助
💻
字号:
#!/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 + -