projects
/
platform
/
upstream
/
coreutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6e2ffd4
)
(main): Issue a warning for obsolete usage, unless POSIXLY_CORRECT.
author
Jim Meyering
<jim@meyering.net>
Fri, 18 Jan 2002 23:39:06 +0000
(23:39 +0000)
committer
Jim Meyering
<jim@meyering.net>
Fri, 18 Jan 2002 23:39:06 +0000
(23:39 +0000)
src/sort.c
patch
|
blob
|
history
diff --git
a/src/sort.c
b/src/sort.c
index
6baf40f
..
2c86177
100644
(file)
--- 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]))
{