• Jonas Termansen's avatar
    Fix POSIX comformance issues in sort(1). · a209c892
    Jonas Termansen authored
    Fix -C disabling checking rather than checking quietly.
    
    Fix sort(1) exiting 1 on certain errors, as POSIX requires sort(1) to only
    exit if the input wasn't sorted when -c.
    
    Fix -o opening the output file for truncation before all the input has been
    read, as POSIX requires allowing -o to be an input file.
    
    POSIX requires sort(1) to handle input errors by either erroring with no
    output, or by erroring and sorting the input read so far. Change the current
    behavior of continuing to the next file to simply failing hard on the first
    input error.
    
    Don't increment the last line number on the end of the standard input.
    
    Report -c/-C as incompatible with -o.
    
    Exit unsuccessfully on any output errors.
    
    Update to current coding conventions and add documentation while here.
    a209c892
Name
Last commit
Last update
bench Loading commit data...
build-aux Loading commit data...
carray Loading commit data...
disked Loading commit data...
dispd Loading commit data...
doc Loading commit data...
editor Loading commit data...
ext Loading commit data...
games Loading commit data...
hostname Loading commit data...
init Loading commit data...
kblayout Loading commit data...
kblayout-compiler Loading commit data...
kernel Loading commit data...
libc Loading commit data...
libm Loading commit data...
libmount Loading commit data...
login Loading commit data...
mkinitrd Loading commit data...
regress Loading commit data...
rw Loading commit data...
sf Loading commit data...
sh Loading commit data...
share/man Loading commit data...
sysinstall Loading commit data...
tix Loading commit data...
trianglix Loading commit data...
update-initrd Loading commit data...
utils Loading commit data...
.gitignore Loading commit data...
LICENSE Loading commit data...
Makefile Loading commit data...
README Loading commit data...