summaryrefslogtreecommitdiff
path: root/tests/head
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2000-05-12 20:31:39 +0000
committerJim Meyering <jim@meyering.net>2000-05-12 20:31:39 +0000
commit12bf65f9155fab98bfd5b3038186f057c7f62a4f (patch)
tree96dc583d6a34f29ed8c0e050666a734e34f624c7 /tests/head
parent48ebc7d0b75ad2f5b2d02f9cf96aebdaac3b7c8b (diff)
downloadcoreutils-12bf65f9155fab98bfd5b3038186f057c7f62a4f.tar.xz
Interpret as decimal, even if number starts with 0.
Diffstat (limited to 'tests/head')
-rw-r--r--tests/head/Test.pm7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/head/Test.pm b/tests/head/Test.pm
index 5259bafe9..ce93b437c 100644
--- a/tests/head/Test.pm
+++ b/tests/head/Test.pm
@@ -40,6 +40,13 @@ my @tv = (
# Make sure we don't break like AIX 4.3.1 on files with \0 in them.
['null-1', '', "a\0a\n", "a\0a\n", 0],
+
+# Make sure counts are interpreted as decimal.
+# Before 2.0f, these would have been interpreted as octal
+['no-octal-1', '-08', "\n"x12, "\n"x8, 0],
+['no-octal-2', '-010', "\n"x12, "\n"x10, 0],
+['no-octal-3', '-n 08', "\n"x12, "\n"x8, 0],
+['no-octal-4', '-c 08', "\n"x12, "\n"x8, 0],
);
sub test_vector