?? basic
字號:
#!/bin/sh# make sure chown --from=... worksif test "$VERBOSE" = yes; then set -x chgrp --versionfi. $srcdir/../envvar-check. $srcdir/../lang-defaultPRIV_CHECK_ARG=require-root . $srcdir/../priv-checkpwd=`pwd`tmp=basic.$$trap 'status=$?; cd $pwd; rm -rf $tmp && exit $status' 0trap '(exit $?); exit' 1 2 13 15framework_failure=0mkdir $tmp || framework_failure=1cd $tmp || framework_failure=1touch f || framework_failure=1if test $framework_failure = 1; then echo 'failure in testing framework' 1>&2 (exit 1); exitfifail=0chown 0:1 f# Make sure the owner and group are 0 and 1 respectively.set _ `ls -n f`; shift; test "$3:$4" = 0:1 || fail=1chown --from=0:1 2:3 f || fail=1# And now they should be 2 and 3 respectively.set _ `ls -n f`; shift; test "$3:$4" = 2:3 || fail=1(exit $fail); exit
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -