summaryrefslogtreecommitdiff
path: root/usr.bin/sort
AgeCommit message (Collapse)Author
2009-12-22implement -C (silent -c), required by POSIX.1-2008;Ingo Schwarze
patch from Daniel Dickman <didickman at gmail dot com> tweaked by me; "looks ok" millert@, manual help and ok jmc@
2009-10-28Don't catch a signal if we inherited it as ignored. Instigated byPhilip Guenthe
comments from Matt Fisher (mfisher_ix at maine.rr.com). ok otto@
2009-10-28rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andTheo de Raadt
unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms
2009-08-16replace ".Ar file ..." with ".Ar" whenever possible.Igor Sobrado
ok jmc@
2009-02-08bump the posix reference in STANDARDS to IEEE Std 1003.1-2008, with a fewJason McIntyre
updates to follow;
2008-11-20KNF; only white space changesOtto Moerbeek
2008-10-01-s not specified by posix; from Daniel DickmanJason McIntyre
2008-03-19Get rid of a useless variable.Matthias Kilian
ok millert@ ray@
2008-02-22Fix the processing of numbers containing zeroes in -n (numeric)Todd C. Miller
mode. Incororates part of a change from jdolecek@netbsd.org. Fixes PR 5739. OK beck@
2007-09-01Use an int, not a size_t, to store the return value of snprintf().Matthias Kilian
This gives the later tests against -1 a chance to actually do something. Initially from Igor Zinovik <zinovik@cs.karelia.ru>. ok ray@
2007-08-22sort usage();Jason McIntyre
2007-08-21Fix up the -s description, with help from tom@Todd C. Miller
2007-08-21Add a -s option to make the radix sort be a stable sort. Based onTodd C. Miller
a diff from Eric Gouyer. Closes PR 5553. OK deraadt@
2007-05-31convert to new .Dd format;Jason McIntyre
2007-05-30- use a consistent text for STANDARDSJason McIntyre
- note which options are extensions to POSIX
2007-04-02The scanf(3) family of functions can return EOF (-1) if an inputMoritz Jodeit
failure occurs. So check it, before blindly adding it to some pointer. ok millert@
2007-03-13Work around gcc optimization bug on sh (landisk). From otto@Todd C. Miller
2007-03-13Use separate buffers in fsort.c and msort.c. Fixes a problem withTodd C. Miller
buffer corruptions for some very large files. Also fixes some TRECHEADER vs. RECHEADER mismatches. Back in after unlock.
2007-03-11some bug (in sort? or compiler) gets hit too late in the release cycle.Theo de Raadt
please try again right after release.
2007-03-07Use separate buffers in fsort.c and msort.c. Fixes a problem withTodd C. Miller
buffer corruptions for some very large files. Also fixes some TRECHEADER vs. RECHEADER mismatches. OK deraadt@ otto@ ray@
2006-12-06Don't access buf[strlen(buf) - 1] for zero-length strings.Ray Lai
OK jaredy@.
2006-11-16Fix undefined behavior (var = ++var).Ray Lai
From Alexey Dobriyan <adobriyan at gmail dot com>. OK otto@, moritz@, and jaredy@.
2006-10-29Remove useless code that can cause a SEGV if a buffer is realloc()ed.Todd C. Miller
Allocate buffers early and in one place instead of two. Make bufend global so it can be updated along with buffer. OK deraadt@
2006-10-28revert previous change; causes segfault when called fromChristian Weisgerber
pkg_mklocatedb/locate.mklocatedb
2006-10-18Remove useless code that can cause a SEGV if a buffer is realloc()ed.Todd C. Miller
Allocate buffers early and in one place instead of two. Fixes PR 5252; OK deraadt
2006-02-14typo in comment; from ray laiJason McIntyre
2005-10-28sort is part of posix so document it as such. more importantly list ourDavid Gwynne
extensions so hopefully people moving scripts to other platforms wont get too confused. this has been bothering me since -z was added. big help from and ok jmc@
2005-10-04clarify behaviour of -u option;Jason McIntyre
ok otto@
2005-10-04document that -k may be specified multiple times,Jason McIntyre
and the effect of doing so; ok otto@
2005-10-04remove ellipsis from -k in usage();Jason McIntyre
2005-10-04remove ellipsis following -k in synopsis; my last commit put thisJason McIntyre
in the wrong place, but i think it will be clearer to remove it altogether and improve the description of -k (to follow); ok otto@
2005-09-28sort options and sync usage();Jason McIntyre
some help from dlg@
2005-09-27add a -z option that allows you to split records on the nul characterDavid Gwynne
('\0'). useful in combination with things like "find . -print0" and "xargs -0". for dewi, a chump. ok deraadt@
2005-08-18Properly initialize 'end' in seq(), fixing a crashJared Yanovich
on input with long lines when the -n flag is given. ok millert
2005-04-11remove silly optimization which should eventually saveMoritz Jodeit
a syscall, when it were not broken. ok otto@
2005-04-11also handle snprintf returning -1, trivialTheo de Raadt
2004-09-14match foo[] between files, instead of foo[] in one, and *foo in anotherTheo de Raadt
2004-09-14ARGSUSED before signal handler with unused signoTheo de Raadt
2004-07-20ansi; khalek@linuxgamers.netTheo de Raadt
2004-03-17do not init SINGL_FLD, SEP_FLAG twice; from robert nagyMichael Shalayeff
2004-03-15only copy extra incomplete crec data if there is any, fixes occasionalNikolay Sturm
failures of locate.updatedb adapted from NetBSD, ok tedu@, millert@
2003-11-15preferred spellingTed Unangst
2003-09-25don't run out of bounds. fixes david's crash during regress.Ted Unangst
ok david deraadt millert
2003-07-14- .Cm Fl -> .FlJason McIntyre
- fix list width
2003-06-26protosTheo de Raadt
2003-06-10mostly ansi cleanup; pval okTheo de Raadt
2003-06-03Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2003-04-06Rewrite fixit() to use snprintf() and strtol() with bounds and errorTodd C. Miller
checking done in each place. This also removes the bogus limit on the number of '+' and '-' args. deraadt@ OK
2003-03-31Sync positional arguments equivalence's description with reality.Thierry Deval
ok millert@
2003-03-30Use PATH_MAX, not _POSIX_PATH_MAX for filename buffers.Todd C. Miller