summaryrefslogtreecommitdiff
path: root/bin
AgeCommit message (Collapse)Author
2016-09-04Allow simple custom completions by creating an array namedNicholas Marriott
"complete_commandname_argnum", for example: set -A complete_kill_1 -- -9 -HUP -INFO -KILL -TERM To set completions for the first argument to kill(1). If no complete_* arrays are present, the normal filename completion is offered. positive comments from many; man page ok/tweaks jmc; ok tedu
2016-09-03add sha512/256 support to check that the libc code is right :)Ted Unangst
2016-09-01simplify comment to remove reference to sparc.Ted Unangst
2016-08-26Pull in <sys/time.h> for gettimeofday()Philip Guenther
2016-08-26Need <time.h> for time() and others. Pulled in by coincidence previouslyPhilip Guenther
noted by tb@
2016-08-26-E NONE has *never* worked; it was always -E none. It's a dubious optionPhilip Guenther
value that merits a warning in the manpage and using 2 billion will get you practically the same effect, so delete the -E none support
2016-08-26options.h is only used by options.c; merge it into the .c filePhilip Guenther
reduce and sort #includes
2016-08-26reduce and sort #includesPhilip Guenther
2016-08-26tables.h is only used by tables.c; merge it into the .c filePhilip Guenther
<sys/time.h> is unnecessary; sort the #includes
2016-08-26<sys/time.h>, <errno.h>, and <stdlib.h> are unnecessary; sort #includesPhilip Guenther
2016-08-26sel_subs.h is only used by sel_subs.c; merge it into the .c filePhilip Guenther
<sys/time.h> and <unistd.h> are unnecessary, but <time.h> is; sort #includes
2016-08-26pat_rep.h is only used by pat_rep.c; merge it into the .c filePhilip Guenther
<sys/time.h>, <errno.h> and <unistd.h> are unnecessary; sort #includes
2016-08-26ftree.h is only used by ftree.c; merge it into the .c filePhilip Guenther
<sys/time.h> is unnecessary; sort #includes
2016-08-26Don't need <sys/time.h> or "options.h" herePhilip Guenther
2016-08-26cache.h is only used by cache.c; merge it into the .c filePhilip Guenther
<unistd.h> and <sys/time.h> are unneeded here ok by general acclaim
2016-08-25remove lint commentsTed Unangst
2016-08-25Replace name_{uid,gid}() with the libc routines user_from_uid() andPhilip Guenther
group_from_gid(). Eliminate some superfluous strncpy() calls. ok millert@
2016-08-24Make list-like output go to stderr when appending to an archive on stdout.Philip Guenther
Simplify the recognition of -f- and TAPE=- as meaning stdin/stdout. ok millert@
2016-08-24Treat cpio's -t option as a modifier to -i, so they're ordering independentPhilip Guenther
ok millert@
2016-08-24Use writev(2) to write history records using a single syscall.Todd C. Miller
OK deraadt@
2016-08-24Avoid recursively calling c_fc(). Fixes a core dump from "r r" andTodd C. Miller
other edge cases found by gsoares@. OK tb@ gsoares@
2016-08-23Instead of doing strcmp(argv0), track the invocation mode (pax/tar/cpio)Philip Guenther
in a separate variable ok deraadt@
2016-08-23Only try to set the times on a directory once, at the end, to avoidPhilip Guenther
duplication of warning messages ok krw@
2016-08-20already in v2 according to ↵Ingo Schwarze
http://www.tuhs.org/Archive/PDP-11/Distributions/research/1972_stuff/unix_2nd_edition_manual.pdf patch from Sevan Janiyan <venture37 at geeklan dot co dot uk>
2016-08-17Add HISTORY section.Ingo Schwarze
Information found on: http://www.tuhs.org/cgi-bin/utree.pl Checked by Sevan Janiyan <venture37 at geeklan dot co dot uk>.
2016-08-16Piping to a shell command does not count as a save, so don't reset theMartin Natano
modified flag. from Jerome Frgacic (jerome.frgacic (at) yahoo.fr) ok tb
2016-08-16Add, correct, and improve HISTORY sections.Ingo Schwarze
From Sevan Janiyan <venture37 at geeklan dot co dot uk>. Verified using http://minnie.tuhs.org/.
2016-08-16Add HISTORY.Ingo Schwarze
From Sevan Janiyan <venture37 at geeklan dot co dot uk>. Verified using the CSRG archive CD.
2016-08-16Nuke a bunch of whitespace nits seen while '%q' hunting.Kenneth R Westerback
2016-08-16Nuke some erroneous leading whitespace.Kenneth R Westerback
2016-08-16Bring types of variables used with struct stat into the modern world.Kenneth R Westerback
Replace a couple of u_long paramaters with int as they were only passed int values and the function re-cast them to (int) anyway. Weird. ok tedu@
2016-08-16Avoid a compiler warning about use of uninitialized l.beg emittedTheo Buehler
when ksh is compiled with -Os (done in distrib/special): move the bit using XPptrv(l) (which expands to l.beg) where it is actually used and clearly initialized. ok tedu, tweak + ok millert
2016-08-16Add HISTORY.Ingo Schwarze
From Sevan Janiyan <venture37 at geeklan dot co dot uk>. Verified using NetBSD CVS.
2016-08-15%*qd -> %*lld + (long long) for off_t.Kenneth R Westerback
Avoid some casts by changing printsize() to take an int (the only type actually passed via that parameter) instead of size_t. Tweaks & ok guenther@
2016-08-14%qd -> %lld for an off_t already being cast to (long long)!Kenneth R Westerback
2016-08-14Another %qd -> %lld + (long long) for off_t's.Kenneth R Westerback
2016-08-14Don't reinvent rlim_t; when printing it use %llu and cast toPhilip Guenther
unsigned long long ok natano@ tedu@
2016-08-14Don't call sysconf() in a loop conditional when the loop won't affect itPhilip Guenther
ok natano@ tedu@
2016-08-14Remove many unnecessary casts. Verified by comparing generated code onPhilip Guenther
both ILP32 and LP64. ok millert@
2016-08-14replace strtoq with strtoll. ok openbsdTed Unangst
2016-08-14Replace u_quad_t with unsigned long long and replace "uqd" with "ull" inPhilip Guenther
function names to match. Pull some tangled assignments out of conditions and use >>= where possible. ok millert@
2016-08-12rework initial text a little, to read better;Jason McIntyre
2016-08-10fix HISTORY; from Sevan Janiyan <venture37 at geeklan dot co dot uk>;Ingo Schwarze
checked with http://minnie.tuhs.org/cgi-bin/utree.pl?file=V1/man/man1
2016-08-09In emacs incremental search mode (^R),Ingo Schwarze
make commands starting with the escape key (^[) work as documented. Long-standing bug, this time reported by Dave minus Cohen dot com. OK natano@ halex@
2016-08-02Fix the begin of word bug in s-command, similar to sed.Martijn van Duren
nit fix and OK schwarze@
2016-07-29all of the update functions take a size_t. correct type and casts.Ted Unangst
ok deraadt millert
2016-07-28remove note about command substitution and double quotes: it is probableJason McIntyre
that i misunderstood something when i wrote it; found by guenther and naddy
2016-07-23Before terminal characteristics are displayed, stty(1) activatesAlexander Bluhm
pledge(2). Then the values cannot be modified anymore. Let stty error out if the display and modify mode are combined on the command line to avoid a pledge violation later on. OK deraadt@
2016-07-18rework the first sentence of this page;Jason McIntyre
with help from otto
2016-07-10attempt to improve clarity by reducing forward references and moreTed Unangst
directly documenting each option's effect.