Up to [local] / src / usr.bin / sort
Request diff between arbitrary revisions
Default branch: MAIN
Current tag: OPENBSD_5_9
Revision 1.20 / (download) - annotate - [select for diffs], Fri Apr 3 10:37:24 2015 UTC (9 years, 2 months ago) by tobias
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE,
OPENBSD_6_0,
OPENBSD_5_9_BASE,
OPENBSD_5_9,
OPENBSD_5_8_BASE,
OPENBSD_5_8
Changes since 1.19: +9 -28 lines
Diff to previous 1.19 (colored)
The combination of -c and -o is not specified by POSIX. In fact, the call "sort -o file -c file" has unspecified behavior and would leave an empty file behind if it was sorted, the original file it was not. If -c (or -C) has been specified, only perform that action and ignore -o among other arguments. While at it, clean up check() internals. with input by and ok millert@