View | Details | Raw Unified
Collapse All | Expand All

(-) ./znew.in~ (-1 / +6 lines)
 Lines 14-23    Link Here 
# block is the disk block size (best guess, need not be exact)
# block is the disk block size (best guess, need not be exact)
warn="(does not preserve modes and timestamp)"
warn="(does not preserve modes and timestamp)"
tmp=/tmp/zfoo.$$
tmp=`tempfile -d /tmp -p zfoo` || {
        echo 'cannot create a temporary file' >&2
        exit 1
}
set -C
set -C
echo hi > $tmp.1 || exit 1
echo hi > $tmp.1 || exit 1
echo hi > $tmp.2 || exit 1
echo hi > $tmp.2 || exit 1
trap 'rm -f $tmp.1; exit 2' HUP INT PIPE TERM 0
trap 'rm -f $tmp.2; exit 2' HUP INT PIPE TERM 0
if test -z "`(${CPMOD-cpmod} $tmp.1 $tmp.2) 2>&1`"; then
if test -z "`(${CPMOD-cpmod} $tmp.1 $tmp.2) 2>&1`"; then
  cpmod=${CPMOD-cpmod}
  cpmod=${CPMOD-cpmod}
  warn=""
  warn=""