summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rwxr-xr-xtests/stty/basic-12
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/stty/basic-1 b/tests/stty/basic-1
index 5c0533b06..3771fc24d 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 +2|tr ';' '\012'|sed '/ = /d;s/^ //;s/-//g'`
+options=`stty -a|tail -n +2|tr ';' '\012'|sed '/ = /d;s/^ //;s/-//g'`
# Take them one at a time, with and without the leading `-'.
for opt in $options; do