diff options
author | Jim Meyering <jim@meyering.net> | 2003-05-14 06:26:34 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2003-05-14 06:26:34 +0000 |
commit | 01d63f13e81d0623d753d6521076c79d355d1921 (patch) | |
tree | c1965f26944090986585ef48750d58fb794a7ad4 /tests/stty | |
parent | 00a770a30e17ee037bff676b48390bdfff466187 (diff) | |
download | coreutils-01d63f13e81d0623d753d6521076c79d355d1921.tar.xz |
Use tr's \n notation rather than \012.
Diffstat (limited to 'tests/stty')
-rwxr-xr-x | tests/stty/basic-1 | 4 | ||||
-rwxr-xr-x | tests/stty/row-col-1 | 2 |
2 files changed, 3 insertions, 3 deletions
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" \ |