CVSROOT:        /cvs
Module name:    src
Changes by:     tob...@cvs.openbsd.org  2015/04/03 04:37:24

Modified files:
        usr.bin/sort   : file.c sort.c 

Log message:
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@

Reply via email to