]>
Commit | Line | Data |
---|---|---|
5675a90f JB |
1 | --- coreutils-5.0/src/head.c.orig Tue Oct 1 10:47:44 2002 |
2 | +++ coreutils-5.0/src/head.c Wed Jan 14 14:54:24 2004 | |
3 | @@ -343,7 +343,7 @@ | |
4 | } | |
5 | } | |
6 | ||
7 | - if (200112 <= posix2_version ()) | |
8 | + if ((200112 <= posix2_version ()) && getenv("POSIXLY_CORRECT")) | |
9 | { | |
10 | error (0, 0, _("`-%s' option is obsolete; use `-%c %.*s%.*s%s'"), | |
11 | n_string, count_lines ? 'n' : 'c', | |
12 | --- coreutils-5.0/src/tail.c.orig Sat Dec 14 18:26:21 2002 | |
13 | +++ coreutils-5.0/src/tail.c Wed Jan 14 14:55:59 2004 | |
14 | @@ -1298,7 +1298,7 @@ | |
15 | if (argc < 2) | |
16 | return 0; | |
17 | ||
18 | - obsolete_usage = (posix2_version () < 200112); | |
19 | + obsolete_usage = ((posix2_version () < 200112) || !getenv("POSIXLY_CORRECT")); | |
20 | ||
21 | /* If P starts with `+' and the POSIX version predates 1003.1-2001, | |
22 | or if P starts with `-N' (where N is a digit), or `-l', then it |