diff options
author | Jim Meyering <jim@meyering.net> | 2002-01-18 23:39:06 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2002-01-18 23:39:06 +0000 |
commit | 36a16de45cb007ddc44490c82b023c9e1389d4b4 (patch) | |
tree | 5b12c52b7a0fc8bb73078acba33975c0f978ee2a /src | |
parent | 6e2ffd49b148ae49157caa90705723b494374c56 (diff) | |
download | coreutils-36a16de45cb007ddc44490c82b023c9e1389d4b4.tar.xz |
(main): Issue a warning for obsolete usage, unless POSIXLY_CORRECT.
Diffstat (limited to 'src')
-rw-r--r-- | src/sort.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/sort.c b/src/sort.c index 6baf40f51..2c8617799 100644 --- a/src/sort.c +++ b/src/sort.c @@ -2292,6 +2292,10 @@ main (int argc, char **argv) } else { + if (! posix_pedantic) + error (0, 0, + _("warning: `sort %s' is obsolete; use `sort -k'"), + optarg); if (optind != argc && argv[optind][0] == '-' && ISDIGIT (argv[optind][1])) { |