summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-05-14 06:26:34 +0000
committerJim Meyering <jim@meyering.net>2003-05-14 06:26:34 +0000
commit01d63f13e81d0623d753d6521076c79d355d1921 (patch)
treec1965f26944090986585ef48750d58fb794a7ad4
parent00a770a30e17ee037bff676b48390bdfff466187 (diff)
downloadcoreutils-01d63f13e81d0623d753d6521076c79d355d1921.tar.xz
Use tr's \n notation rather than \012.
-rwxr-xr-xtests/cp/same-file2
-rwxr-xr-xtests/misc/nice2
-rwxr-xr-xtests/mkdir/perm2
-rwxr-xr-xtests/mv/part-symlink6
-rwxr-xr-xtests/rm/deep-14
-rwxr-xr-xtests/stty/basic-14
-rwxr-xr-xtests/stty/row-col-12
7 files changed, 11 insertions, 11 deletions
diff --git a/tests/cp/same-file b/tests/cp/same-file
index 639098ebd..4f9349ef5 100755
--- a/tests/cp/same-file
+++ b/tests/cp/same-file
@@ -92,7 +92,7 @@ for args in 'foo symlink' 'symlink foo' 'foo foo' 'sl1 sl2' 'foo hardlink'; do
echo symlink-loop
fi
done
- ) | tr '\012' ' '
+ ) | tr '\n' ' '
echo
) | sed 's/ *$//'
cd ..
diff --git a/tests/misc/nice b/tests/misc/nice
index 6b2feacd6..d42f0ae5e 100755
--- a/tests/misc/nice
+++ b/tests/misc/nice
@@ -58,7 +58,7 @@ while :; do
args=`echo x$args|tr : ' '|sed 's/^x//'`
if test "$VERBOSE" = yes; then
#echo "testing \`nice $args nice\` = $expected_result ..."
- echo "test $test_name... " | tr -d '\012'
+ echo "test $test_name... " | tr -d '\n'
fi
test x`nice $args nice 2> /dev/null` = x$expected_result \
&& ok=ok || ok=FAIL fail=1
diff --git a/tests/mkdir/perm b/tests/mkdir/perm
index 3e18eab1a..71998f711 100755
--- a/tests/mkdir/perm
+++ b/tests/mkdir/perm
@@ -48,7 +48,7 @@ for p in empty -p; do
old_IFS=$IFS
IFS=':'
- set - `(echo "$tests"|tr -d '\012'; echo)|sed 's/^ *//;s/ *:/:/g;s/: */:/g'`
+ set - `(echo "$tests"|tr -d '\n'; echo)|sed 's/^ *//;s/ *:/:/g;s/: */:/g'`
IFS=$old_IFS
while :; do
diff --git a/tests/mv/part-symlink b/tests/mv/part-symlink
index 4bcef66e8..ccceee511 100755
--- a/tests/mv/part-symlink
+++ b/tests/mv/part-symlink
@@ -97,9 +97,9 @@ for copy in cp mv; do
# remove any site-dependent part of other-partition file name,
# and put brackets around the output.
test -s .err && {
- echo '[' | tr -d '\012'
+ echo '[' | tr -d '\n'
sed 's/^[^:][^:]*\(..\):/\1:/;s,'$other_partition_tmpdir/,, .err
- echo ']' | tr -d '\012'
+ echo ']' | tr -d '\n'
}
# Strip off all but the file names.
# Remove any site-dependent part of each file name.
@@ -146,7 +146,7 @@ for copy in cp mv; do
fi
done
fi
- ) | tr '\012' ' '
+ ) | tr '\n' ' '
echo
) | sed 's/ *$//'
cd ..
diff --git a/tests/rm/deep-1 b/tests/rm/deep-1
index 21702ad0e..f653be9ba 100755
--- a/tests/rm/deep-1
+++ b/tests/rm/deep-1
@@ -31,14 +31,14 @@ k_deep=$k200$k200
# Create a directory in $tmp with lots of `k' components.
deep=$tmp$k_deep
-echo "creating a hierarchy 400 deep in $tmp..." |tr -d '\012'
+echo "creating a hierarchy 400 deep in $tmp..." |tr -d '\n'
mkdir -p $deep || fail=1
echo done
# Make sure the deep dir was created.
test -d $deep || fail=1
-echo "deleting $tmp..." |tr -d '\012'
+echo "deleting $tmp..." |tr -d '\n'
rm -r $tmp || fail=1
echo done
diff --git a/tests/stty/basic-1 b/tests/stty/basic-1
index 3771fc24d..780b43678 100755
--- a/tests/stty/basic-1
+++ b/tests/stty/basic-1
@@ -33,7 +33,7 @@ stty `cat $saved_state` || fail=1
stty erase -
# Build a list of all boolean options stty accepts on this system.
-options=`stty -a|tail -n +2|tr ';' '\012'|sed '/ = /d;s/^ //;s/-//g'`
+options=`stty -a|tail -n +2|tr ';' '\n'|sed '/ = /d;s/^ //;s/-//g'`
# Take them one at a time, with and without the leading `-'.
for opt in $options; do
@@ -54,7 +54,7 @@ done
if test -n "$RUN_LONG_TESTS"; then
# Take them in pairs.
for opt1 in $options; do
- echo .|tr -d '\012'
+ echo .|tr -d '\n'
for opt2 in $options; do
stty $opt1 $opt2 || fail=1
diff --git a/tests/stty/row-col-1 b/tests/stty/row-col-1
index 0ede6cb7f..06a74c8af 100755
--- a/tests/stty/row-col-1
+++ b/tests/stty/row-col-1
@@ -47,7 +47,7 @@ while :; do
args=`echo x$args|tr _ ' '|sed 's/^x//'`
if test "$VERBOSE" = yes; then
# echo "testing \`stty $args; stty size\` = $expected_result ..."
- echo "test $test_name... " | tr -d '\012'
+ echo "test $test_name... " | tr -d '\n'
fi
stty $args || exit 1
test x"`stty size 2> /dev/null`" = "x$expected_result" \