diff options
Diffstat (limited to 'tests/misc')
-rwxr-xr-x | tests/misc/cat-proc | 2 | ||||
-rwxr-xr-x | tests/misc/close-stdout | 14 | ||||
-rwxr-xr-x | tests/misc/csplit | 2 | ||||
-rwxr-xr-x | tests/misc/date-sec | 4 | ||||
-rwxr-xr-x | tests/misc/false-status | 2 | ||||
-rwxr-xr-x | tests/misc/head-c | 4 | ||||
-rwxr-xr-x | tests/misc/head-pos | 4 | ||||
-rwxr-xr-x | tests/misc/mknod | 2 | ||||
-rwxr-xr-x | tests/misc/nl | 4 | ||||
-rwxr-xr-x | tests/misc/nohup | 2 | ||||
-rwxr-xr-x | tests/misc/pathchk1 | 4 | ||||
-rwxr-xr-x | tests/misc/printf | 38 | ||||
-rwxr-xr-x | tests/misc/printf-hex | 8 | ||||
-rwxr-xr-x | tests/misc/pwd-long | 6 | ||||
-rwxr-xr-x | tests/misc/shuf | 2 | ||||
-rwxr-xr-x | tests/misc/sort-rand | 2 | ||||
-rwxr-xr-x | tests/misc/split-a | 4 | ||||
-rwxr-xr-x | tests/misc/split-fail | 4 | ||||
-rwxr-xr-x | tests/misc/split-l | 4 | ||||
-rwxr-xr-x | tests/misc/stat-fmt | 4 | ||||
-rwxr-xr-x | tests/misc/tac-continue | 4 | ||||
-rwxr-xr-x | tests/misc/wc-files0 | 2 |
22 files changed, 61 insertions, 61 deletions
diff --git a/tests/misc/cat-proc b/tests/misc/cat-proc index d6ff5011b..22f384765 100755 --- a/tests/misc/cat-proc +++ b/tests/misc/cat-proc @@ -26,7 +26,7 @@ fi pwd=`pwd` t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$ -trap 'status=$?; cd $pwd; chmod -R u+rwx $t0; rm -rf $t0 && exit $status' 0 +trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0 trap '(exit $?); exit $?' 1 2 13 15 framework_failure=0 diff --git a/tests/misc/close-stdout b/tests/misc/close-stdout index a232fd746..01edf32c4 100755 --- a/tests/misc/close-stdout +++ b/tests/misc/close-stdout @@ -26,7 +26,7 @@ fi pwd=`pwd` t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$ -trap 'status=$?; cd $pwd; chmod -R u+rwx $t0; rm -rf $t0 && exit $status' 0 +trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0 trap '(exit $?); exit $?' 1 2 13 15 framework_failure=0 @@ -56,21 +56,21 @@ mv d e >&- || fail=1 rmdir e >&- || fail=1 touch e >&- || fail=1 sleep 0 >&- || fail=1 -$pwd/../../src/true >&- || fail=1 -$pwd/../../src/printf '' >&- || fail=1 +"$pwd"/../../src/true >&- || fail=1 +"$pwd"/../../src/printf '' >&- || fail=1 # If >&- works, ensure these fail, because stdout is closed and they # *do* generate output. >&- apparently does not work in HP-UX 11.23. # This test is ineffective unless /dev/stdout also works. -if $pwd/../../src/test -w /dev/stdout >/dev/null && - $pwd/../../src/test ! -w /dev/stdout >&-; then - $pwd/../../src/printf 'foo' >&- 2>/dev/null && fail=1 +if "$pwd"/../../src/test -w /dev/stdout >/dev/null && + "$pwd"/../../src/test ! -w /dev/stdout >&-; then + "$pwd"/../../src/printf 'foo' >&- 2>/dev/null && fail=1 cp --verbose a b >&- 2>/dev/null && fail=1 fi # Likewise for /dev/full, if /dev/full works. if test -w /dev/full && test -c /dev/full; then - $pwd/../../src/printf 'foo' >/dev/full 2>/dev/null && fail=1 + "$pwd"/../../src/printf 'foo' >/dev/full 2>/dev/null && fail=1 cp --verbose a b >/dev/full 2>/dev/null && fail=1 fi diff --git a/tests/misc/csplit b/tests/misc/csplit index 1feea6645..885d6928a 100755 --- a/tests/misc/csplit +++ b/tests/misc/csplit @@ -28,7 +28,7 @@ fi pwd=`pwd` tmp=csplit.$$ -trap 'status=$?; cd $pwd; rm -rf $tmp && exit $status' 0 +trap 'status=$?; cd "$pwd" && rm -rf $tmp && exit $status' 0 trap '(exit $?); exit' 1 2 13 15 framework_failure=0 diff --git a/tests/misc/date-sec b/tests/misc/date-sec index aac1e0a98..222b5cfdc 100755 --- a/tests/misc/date-sec +++ b/tests/misc/date-sec @@ -3,7 +3,7 @@ # `date --date="21:04 +0100" +%S' always prints `00'. # Before coreutils-5.2.1, it would print the seconds from the current time. -# Copyright (C) 2004 Free Software Foundation, Inc. +# Copyright (C) 2004, 2006 Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -27,7 +27,7 @@ fi pwd=`pwd` t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$ -trap 'status=$?; cd $pwd; chmod -R u+rwx $t0; rm -rf $t0 && exit $status' 0 +trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0 trap '(exit $?); exit $?' 1 2 13 15 framework_failure=0 diff --git a/tests/misc/false-status b/tests/misc/false-status index 0397c2992..612b5f90c 100755 --- a/tests/misc/false-status +++ b/tests/misc/false-status @@ -25,7 +25,7 @@ fi pwd=`pwd` t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$ -trap 'status=$?; cd $pwd; chmod -R u+rwx $t0; rm -rf $t0 && exit $status' 0 +trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0 trap '(exit $?); exit $?' 1 2 13 15 framework_failure=0 diff --git a/tests/misc/head-c b/tests/misc/head-c index 387a5be8f..ba13c32bc 100755 --- a/tests/misc/head-c +++ b/tests/misc/head-c @@ -1,7 +1,7 @@ #!/bin/sh # exercise the fix of 2001-08-18, based on test case from Ian Bruce -# Copyright (C) 2001, 2004 Free Software Foundation, Inc. +# Copyright (C) 2001, 2004, 2006 Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -25,7 +25,7 @@ fi pwd=`pwd` tmp=head-c.$$ -trap 'status=$?; cd $pwd; rm -rf $tmp && exit $status' 0 +trap 'status=$?; cd "$pwd" && rm -rf $tmp && exit $status' 0 trap '(exit $?); exit' 1 2 13 15 framework_failure=0 diff --git a/tests/misc/head-pos b/tests/misc/head-pos index edb334311..9069febf3 100755 --- a/tests/misc/head-pos +++ b/tests/misc/head-pos @@ -2,7 +2,7 @@ # When reading a specified number of lines, ensure that the output # file pointer is positioned just after those lines. -# Copyright (C) 2002, 2004 Free Software Foundation, Inc. +# Copyright (C) 2002, 2004, 2006 Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -26,7 +26,7 @@ fi pwd=`pwd` tmp=head-pos.$$ -trap 'status=$?; cd $pwd; rm -rf $tmp && exit $status' 0 +trap 'status=$?; cd "$pwd" && rm -rf $tmp && exit $status' 0 trap '(exit $?); exit' 1 2 13 15 framework_failure=0 diff --git a/tests/misc/mknod b/tests/misc/mknod index ca15feb8a..12cb0a623 100755 --- a/tests/misc/mknod +++ b/tests/misc/mknod @@ -25,7 +25,7 @@ fi pwd=`pwd` t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$ -trap 'status=$?; cd $pwd; chmod -R u+rwx $t0; rm -rf $t0 && exit $status' 0 +trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0 trap '(exit $?); exit $?' 1 2 13 15 framework_failure=0 diff --git a/tests/misc/nl b/tests/misc/nl index 2244ae281..72d2c2132 100755 --- a/tests/misc/nl +++ b/tests/misc/nl @@ -1,7 +1,7 @@ #!/bin/sh # exercise nl functionality -# Copyright (C) 2002, 2003 Free Software Foundation, Inc. +# Copyright (C) 2002, 2003, 2006 Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -25,7 +25,7 @@ fi pwd=`pwd` t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$ -trap 'status=$?; cd $pwd; chmod -R u+rwx $t0; rm -rf $t0 && exit $status' 0 +trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0 trap '(exit $?); exit $?' 1 2 13 15 framework_failure=0 diff --git a/tests/misc/nohup b/tests/misc/nohup index d44d3f986..61664738b 100755 --- a/tests/misc/nohup +++ b/tests/misc/nohup @@ -28,7 +28,7 @@ fi pwd=`pwd` t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$ -trap 'status=$?; cd $pwd; chmod -R u+rwx $t0; rm -rf $t0 && exit $status' 0 +trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0 trap '(exit $?); exit $?' 1 2 13 15 framework_failure=0 diff --git a/tests/misc/pathchk1 b/tests/misc/pathchk1 index eb7b462ad..9305f0c2d 100755 --- a/tests/misc/pathchk1 +++ b/tests/misc/pathchk1 @@ -1,7 +1,7 @@ #!/bin/sh # pathchk tests -# Copyright (C) 2002, 2004, 2005 Free Software Foundation, Inc. +# Copyright (C) 2002, 2004, 2005, 2006 Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -27,7 +27,7 @@ PRIV_CHECK_ARG=require-non-root . $srcdir/../priv-check pwd=`pwd` t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$ -trap 'status=$?; cd $pwd; rm -rf $t0 && exit $status' 0 +trap 'status=$?; cd "$pwd" && rm -rf $t0 && exit $status' 0 trap '(exit $?); exit' 1 2 13 15 framework_failure=0 diff --git a/tests/misc/printf b/tests/misc/printf index 6b29277b0..481cb37a2 100755 --- a/tests/misc/printf +++ b/tests/misc/printf @@ -1,7 +1,7 @@ #!/bin/sh # basic tests for printf -# Copyright (C) 2002, 2003, 2004 Free Software Foundation, Inc. +# Copyright (C) 2002, 2003, 2004, 2006 Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -22,12 +22,12 @@ prog=`pwd`/../../src/printf if test "$VERBOSE" = yes; then set -x - $prog --version + "$prog" --version fi pwd=`pwd` t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$ -trap 'status=$?; cd $pwd; chmod -R u+rwx $t0; rm -rf $t0 && exit $status' 0 +trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0 trap '(exit $?); exit $?' 1 2 13 15 framework_failure=0 @@ -43,7 +43,7 @@ fail=0 # This would fail (by printing the `--') for printf in sh-utils # and in coreutils 4.5.1. -$prog -- 'foo\n' > out || fail=1 +"$prog" -- 'foo\n' > out || fail=1 cat <<\EOF > exp foo EOF @@ -53,46 +53,46 @@ test $fail = 1 && diff out exp 2> /dev/null rm -f out exp # Until coreutils-4.5.10, this would elicit a segfault. -$prog '1 %*sy\n' -3 x > out || fail=1 +"$prog" '1 %*sy\n' -3 x > out || fail=1 # Until coreutils 5.2.2, this would succeed. -if POSIXLY_CORRECT=1 $prog '2 \x' >/dev/null 2>&1; then +if POSIXLY_CORRECT=1 "$prog" '2 \x' >/dev/null 2>&1; then fail=1 else echo '2 failed, as expected' >> out fi # Until coreutils-4.5.12, these would fail. -$prog '3 \x40\n' >> out || fail=1 +"$prog" '3 \x40\n' >> out || fail=1 POSIXLY_CORRECT=1 \ -$prog '4 \x40\n' >> out || fail=1 -$prog '5 % +d\n' 234 >> out || fail=1 +"$prog" '4 \x40\n' >> out || fail=1 +"$prog" '5 % +d\n' 234 >> out || fail=1 # This should print "6 !\n", but don't rely on `!' being the # one-byte representation of octal 041. With printf prior to # coreutils-5.0.1, it would print six bytes: "6 \41\n". -$prog '6 \41\n' | tr '\41' '!' >> out +"$prog" '6 \41\n' | tr '\41' '!' >> out # Note that as of coreutils-5.0.1, printf with a format of '\0002x' # prints a NUL byte followed by the digit `2' and an `x'. # By contrast bash's printf outputs the same thing as $(printf '\2x') does. -$prog '7 \2y \02y \002y \0002y\n' |tr '\0\2' '*=' >> out +"$prog" '7 \2y \02y \002y \0002y\n' |tr '\0\2' '*=' >> out -$prog '8 %b %b %b %b\n' '\1y' '\01y' '\001y' '\0001y'|tr '\1' = >> out +"$prog" '8 %b %b %b %b\n' '\1y' '\01y' '\001y' '\0001y'|tr '\1' = >> out -$prog '9 %*dx\n' -2 0 >>out || fail=1 +"$prog" '9 %*dx\n' -2 0 >>out || fail=1 -$prog '10 %.*dx\n' -2147483648 0 >>out || fail=1 +"$prog" '10 %.*dx\n' -2147483648 0 >>out || fail=1 -$prog '11 %*c\n' 2 x >>out || fail=1 +"$prog" '11 %*c\n' 2 x >>out || fail=1 -$prog '%#d\n' 0 >>out 2> /dev/null && fail=1 +"$prog" '%#d\n' 0 >>out 2> /dev/null && fail=1 -$prog '%0s\n' 0 >>out 2> /dev/null && fail=1 +"$prog" '%0s\n' 0 >>out 2> /dev/null && fail=1 -$prog '%.9c\n' 0 >>out 2> /dev/null && fail=1 +"$prog" '%.9c\n' 0 >>out 2> /dev/null && fail=1 -$prog '%'\''s\n' 0 >>out 2> /dev/null && fail=1 +"$prog" '%'\''s\n' 0 >>out 2> /dev/null && fail=1 cat <<\EOF > exp 1 x y diff --git a/tests/misc/printf-hex b/tests/misc/printf-hex index df001cd8d..d3d5d04b2 100755 --- a/tests/misc/printf-hex +++ b/tests/misc/printf-hex @@ -1,7 +1,7 @@ #!/bin/sh # make sure that only two hex. digits are consumed in a \xHHH sequence -# Copyright (C) 2002, 2004 Free Software Foundation, Inc. +# Copyright (C) 2002, 2004, 2006 Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -22,12 +22,12 @@ prog=`pwd`/../../src/printf if test "$VERBOSE" = yes; then set -x - $prog --version + "$prog" --version fi pwd=`pwd` t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$ -trap 'status=$?; cd $pwd; chmod -R u+rwx $t0; rm -rf $t0 && exit $status' 0 +trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0 trap '(exit $?); exit $?' 1 2 13 15 framework_failure=0 @@ -41,7 +41,7 @@ fi fail=0 -$prog '\x7e3\n' > out || fail=1 +"$prog" '\x7e3\n' > out || fail=1 cat <<\EOF > exp ~3 EOF diff --git a/tests/misc/pwd-long b/tests/misc/pwd-long index c4af777f3..bf6d00441 100755 --- a/tests/misc/pwd-long +++ b/tests/misc/pwd-long @@ -27,9 +27,9 @@ $PERL -e 1 > /dev/null 2>&1 || { } framework_failure=0 -pwd=`${BUILD_SRC_DIR?}/pwd` || framework_failure=1 +pwd=`"${BUILD_SRC_DIR?}"/pwd` || framework_failure=1 t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$ -trap 'status=$?; cd $pwd; chmod -R u+rwx $t0; rm -rf $t0 && exit $status' 0 +trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0 trap '(exit $?); exit $?' 1 2 13 15 mkdir -p $tmp || framework_failure=1 @@ -75,7 +75,7 @@ $build_src_dir my $pwd_binary = "$build_src_dir/pwd"; -x $pwd_binary or die "$ME: $pwd_binary is not an executable file\n"; -chomp (my $actual = `$pwd_binary`); +chomp (my $actual = `"$pwd_binary"`); if ($expected ne $actual) { my $e_len = length $expected; diff --git a/tests/misc/shuf b/tests/misc/shuf index 17a74dd3f..760bd4921 100755 --- a/tests/misc/shuf +++ b/tests/misc/shuf @@ -25,7 +25,7 @@ fi pwd=`pwd` t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$ -trap 'status=$?; cd $pwd; chmod -R u+rwx $t0; rm -rf $t0 && exit $status' 0 +trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0 trap '(exit $?); exit $?' 1 2 13 15 framework_failure=0 diff --git a/tests/misc/sort-rand b/tests/misc/sort-rand index 04bcc477f..f9973186e 100755 --- a/tests/misc/sort-rand +++ b/tests/misc/sort-rand @@ -25,7 +25,7 @@ fi pwd=`pwd` t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$ -trap 'status=$?; cd $pwd; chmod -R u+rwx $t0; rm -rf $t0 && exit $status' 0 +trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0 trap '(exit $?); exit $?' 1 2 13 15 framework_failure=0 diff --git a/tests/misc/split-a b/tests/misc/split-a index 3ae4736c2..7dfe31954 100755 --- a/tests/misc/split-a +++ b/tests/misc/split-a @@ -1,7 +1,7 @@ #!/bin/sh # Show that split -a works. -# Copyright (C) 2002, 2003, 2004 Free Software Foundation, Inc. +# Copyright (C) 2002, 2003, 2004, 2006 Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -25,7 +25,7 @@ fi pwd=`pwd` tmp=split-a.$$ -trap 'status=$?; cd $pwd; rm -rf $tmp && exit $status' 0 +trap 'status=$?; cd "$pwd" && rm -rf $tmp && exit $status' 0 trap '(exit $?); exit' 1 2 13 15 framework_failure=0 diff --git a/tests/misc/split-fail b/tests/misc/split-fail index 1268190b8..70435b453 100755 --- a/tests/misc/split-fail +++ b/tests/misc/split-fail @@ -1,7 +1,7 @@ #!/bin/sh # split must fail when given length/count of zero. -# Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc. +# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -27,7 +27,7 @@ fi pwd=`pwd` t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$ -trap 'status=$?; cd $pwd; chmod -R u+rwx $t0; rm -rf $t0 && exit $status' 0 +trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0 trap '(exit $?); exit $?' 1 2 13 15 framework_failure=0 diff --git a/tests/misc/split-l b/tests/misc/split-l index 27c4c3f1b..44916837e 100755 --- a/tests/misc/split-l +++ b/tests/misc/split-l @@ -1,7 +1,7 @@ #!/bin/sh # show that `split --lines=2' works. -# Copyright (C) 2002 Free Software Foundation, Inc. +# Copyright (C) 2002, 2006 Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -25,7 +25,7 @@ fi pwd=`pwd` t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$ -trap 'status=$?; cd $pwd; chmod -R u+rwx $t0; rm -rf $t0 && exit $status' 0 +trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0 trap '(exit $?); exit $?' 1 2 13 15 framework_failure=0 diff --git a/tests/misc/stat-fmt b/tests/misc/stat-fmt index 560ea1014..435fbbb55 100755 --- a/tests/misc/stat-fmt +++ b/tests/misc/stat-fmt @@ -1,7 +1,7 @@ #!/bin/sh # ensure that stat properly handles a format string ending with % -# Copyright (C) 2003, 2004 Free Software Foundation, Inc. +# Copyright (C) 2003, 2004, 2006 Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -25,7 +25,7 @@ fi pwd=`pwd` t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$ -trap 'status=$?; cd $pwd; chmod -R u+rwx $t0; rm -rf $t0 && exit $status' 0 +trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0 trap '(exit $?); exit $?' 1 2 13 15 framework_failure=0 diff --git a/tests/misc/tac-continue b/tests/misc/tac-continue index 41764296b..d8f50ffc4 100755 --- a/tests/misc/tac-continue +++ b/tests/misc/tac-continue @@ -3,7 +3,7 @@ # when it encounters an error with say the first one. # With coreutils-5.2.1 and earlier, this test would fail. -# Copyright (C) 2004 Free Software Foundation, Inc. +# Copyright (C) 2004, 2006 Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -41,7 +41,7 @@ fi pwd=`pwd` t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$ -trap 'status=$?; cd $pwd; chmod -R u+rwx $t0; rm -rf $t0 && exit $status' 0 +trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0 trap '(exit $?); exit $?' 1 2 13 15 framework_failure=0 diff --git a/tests/misc/wc-files0 b/tests/misc/wc-files0 index 758024aa7..8991e7e12 100755 --- a/tests/misc/wc-files0 +++ b/tests/misc/wc-files0 @@ -27,7 +27,7 @@ fi pwd=`pwd` t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$ -trap 'status=$?; cd $pwd; chmod -R u+rwx $t0; rm -rf $t0 && exit $status' 0 +trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0 trap '(exit $?); exit $?' 1 2 13 15 framework_failure=0 |