echo symlink-loop
fi
done
- ) | tr '\012' ' '
+ ) | tr '\n' ' '
echo
) | sed 's/ *$//'
cd ..
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
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
# 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.
fi
done
fi
- ) | tr '\012' ' '
+ ) | tr '\n' ' '
echo
) | sed 's/ *$//'
cd ..
# 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
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
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
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" \