summaryrefslogtreecommitdiff
path: root/bin
AgeCommit message (Collapse)Author
2013-12-02use a wording more usual in our manual pages.Igor Sobrado
ok guenther@
2013-12-02Move ksh test files into regressMove ksh test files into regressMove ksh ↵Todd C. Miller
test files into regress.
2013-11-28remove trailing whitespaces; use tabs instead of spaces where appropriate;Igor Sobrado
no binary changes.
2013-11-28remove trailing spaces.Igor Sobrado
2013-11-27remove erroneous char cast to switch expression processing getopt(3);Okan Demirmen
not used in any cases. ok deraadt@, guenther@, millert@
2013-11-25use u_char for buffers in yylex, for ctype callsSebastian Benoit
found by millert@, ok deraadt@
2013-11-21add unsigned char casts for specific calls to ctype.h macros.Theo de Raadt
ok guenther step
2013-11-20unsigned casts for ctype macros where neccessaryTheo de Raadt
ok guenther millert markus
2013-11-14be more specific in ulimit error messages.Marc Espie
prompted by henning@ okay millert@, krw@, pirofti@
2013-11-12add a variety of missing prototypesTheo de Raadt
2013-11-11unused prototypeTheo de Raadt
2013-11-11remove totally excessive set of #includeTheo de Raadt
2013-10-31pull in less .h to do the sameTheo de Raadt
2013-10-28add -A (-ax) support; from Lauri Tirkkonen with some option sorting.Okan Demirmen
ok guenther@ jmc@
2013-10-24Fix field header overriding on fields that are (internally) aliases for others.Philip Guenther
Follow POSIX spec for the default headers for the comm, etime, and tty fields. Problem noted by lotheac (at) iki.fi ok deraadt@
2013-10-20catch up with elf(5)/stab(5) removal;Jason McIntyre
ok miod
2013-10-20Parse the argument the -r option with atoll() to support dates past 2038Philip Guenther
from J Drivdal (xjd (at) rivu.net)
2013-10-19fix a few obvious .Ar markup errors (unfortunately, there are many more)Ingo Schwarze
found while working on mandoc apropos
2013-10-17a.out emulation went awayTheo de Raadt
2013-10-08Fix delivery of SIGPROF and SIGVTALRM to threaded processes by havingPhilip Guenther
hardclock() set a flag on the running thread and force AST processing, and then have the thread signal itself from userret(). idea and flag names from FreeBSD ok jsing@
2013-10-08POSIX specifies that when the pax input file requests a hardlinkPhilip Guenther
to a symlinks, that it be exactly that and not a hardlink to the file pointed to by the symlink. Use linkat() to get what we want. ok deraadt@
2013-09-22Stop merging the per-thread and per-process flags when reportingPhilip Guenther
them via sysctl(KERN_PROC). In struct kinfo_proc the per-process flags move to p_psflags, leaving the per-thread flags in p_flags. Flag descriptions in ps(1) updated to be less obtuse. discussed with matthew@ some time ago; ok jca@, manpage bits ok jmc@
2013-09-14Back out revision 1.38. Commands executed via `foo` or $( bar )Todd C. Miller
actually should inherit "set -e" status according to POSIX. OK jca@
2013-09-04Add a proper suspend builtin that saves/restores the tty and pgrpTodd C. Miller
as needed instead of an alias that just sends SIGSTOP. Login shells may be suspended if they are not running in an orphan process group. OK guenther@ jmc@
2013-08-22Correct format string mismatches turned up by -Wformat=2Philip Guenther
suggestions and ok millert@
2013-08-14some Bx/Ox conversion;Jason McIntyre
From: Jan Stary
2013-07-16where "-" represents stdin, just use Sq, not Fl, since it's not a flag;Jason McIntyre
from Jan Stary
2013-07-15use .Mt for email address; from Jan Stary <hans at stare dot cz>; ok jmc@Ingo Schwarze
2013-07-13Remove no longer needed vax CFLAGS workarounds.Miod Vallat
2013-07-03cpio and ustar formats store times in octal fields that are 11 charactersPhilip Guenther
wide, so they support up to 33bits. Take advantage of the extra bits by no longer forcing them into 32bit ints before the time_t conversion. This gets us another 204 years of range once time_t changes type ok deraadt@ tedu@
2013-07-01Make $(< /nonexistent) have the same behaviour as $(cat /nonexistent)Jeremie Courreges-Anglas
wrt. errors (do not unwind and do not treat this as fatal if set -e is used). This matches what bash does. Tweak regress tests while here. ok millert@, jasper@ agrees
2013-06-19Add test for syn.c revision 1.29Todd C. Miller
2013-06-19Commands executed via `foo` or $( bar ) should not inherit "set -e"Todd C. Miller
status. We can't use XERROK for this (since the command might set -e itself) so just save & restore the value of FERREXIT for the comsub() call to execute(). OK jca@
2013-06-17Handle time_t values as long long's when formatting them and whenPhilip Guenther
parsing them from remote servers. Improve error checking in parsing of 'T' lines. ok dtucker@ deraadt@
2013-06-16set -e should not affect command substitution, e.g. `foo` orTodd C. Miller
$( foo ). However, if set -e is specified as part of the command it needs to be honored.
2013-06-15Add test for trapping both ERR and EXIT, fixed by revision 1.48Todd C. Miller
of exec.c
2013-06-15Run any pending traps before calling the EXIT or ERR traps when -eTodd C. Miller
is set. Fixes a bug where we would not run the signal trap if, for example, ^C was pressed and -e was set. OK espie@
2013-06-14Add -T option to set the temp dir.Todd C. Miller
2013-06-14Use mkstemp/mkdtemp not $$ for temp files.Todd C. Miller
2013-06-14Exit with non-zero status if a test unexpectedly failed.Todd C. Miller
2013-06-14Adapt OpenBSD ksh regress tests to the pdksh test harness.Todd C. Miller
2013-06-13Document correct interaction of -e flag with && and ||. OK jmc@Todd C. Miller
2013-06-10POSIX specifies that for an AND/OR list, only the last command'sTodd C. Miller
exit status matters for "set -e". Revert the part of revision 1.49 that always sets xerrok for AND/OR. This makes sh/ksh pass the updated regress tests. OK espie@ jca@
2013-06-03for var in; do ... shouldn't be interpreted as for var; do ...Jeremie Courreges-Anglas
Fix by returning an empty token list instead of NULL to consumers. Brings base ksh more in line with POSIX.
2013-06-03add : to special chars.Ted Unangst
identical diffs from plhk sdf.org and leva ecentrum.hu. ok deraadt.
2013-06-01Replace S_IWRITE, which isn't standardized, with S_IWUSR, which is. PatchDarren Tucker
from Nathan Osman via bz#2085. ok deraadt.
2013-06-01fiddle with the NO_CONV code to allow notrunc and noerror to still work.Ted Unangst
ok halex
2013-06-01consolidate ifdef blocks by moving a variableTed Unangst
2013-05-30Fix column padding of inode numbers and block counts >2^32, as well asPhilip Guenther
display of directory block totals >2^32 ok tedu@
2013-05-25Fix typo. From Caspar Schutijser via tech@.lum