summaryrefslogtreecommitdiff
path: root/bin
AgeCommit message (Collapse)Author
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.
2016-07-01For -be, indent the $ on blank lines.Ingo Schwarze
Patch from Giles Lean (NetBSD PR bin/4841), tweaked by kleink at NetBSD (rev. 1.17 1998-01-27), version for OpenBSD sent in by Sevan Janiyan <venture37 at geeklan dot co dot uk>. OK deraadt@
2016-06-28revert previous. better fix applied to fts_open.Ted Unangst
2016-06-28don't report errors for 'rm -rf ""'. report by rkitover.Ted Unangst
ok benno deraadt
2016-06-23allow creation of devices or fifo without -p (as it is already allowed with -p)Sebastien Marie
diff from trondd at kagu-tsuchi com, enhanced by me for reordering promises ok deraadt@
2016-06-03new style overlords say to use continue in empty loops.Ted Unangst
this is easier to see and self documenting. ok openbsd
2016-06-01put this in the public domain as well. reminded by theo. we discussedMarc Espie
this before previous release, and I plain forgot about it.
2016-05-10Fix operator precedence error; OK guenther@ millert@Tim van der Molen
2016-05-04Correct the description of the != operator in arithmetic expansion;Ingo Schwarze
from Andras Farkas <deepbluemistake at gmail dot com>.
2016-05-04line editing correction; from andras farkasJason McIntyre
2016-04-27Do not handle echo "`echo \"hi\"`" in POSIX mode differently than inChristian Weisgerber
traditional mode. This aligns ksh's behavior with bash and FreeBSD sh. The interpretation of the POSIX text is disputed, but it is unlikely that a change from the traditional behavior was intended. ok millert@
2016-04-25remove list item left in previous;Jason McIntyre
2016-04-25remove references to systraceTed Unangst
2016-04-25boom goes the dynamiteTed Unangst
2016-04-25unlink systrace from the build. pledge is the glorious future that awaits.Ted Unangst
the rest of systrace to be deleted in a serious of followup commits. ok from larger openbsd developer community
2016-04-19Switch from fgetln() to getline() to simplify error handling.Philip Guenther
Use syswarn() in more places which set errno and regularize the error messages. Skip empty lines in the input read for tar -T, cpio -E, and cpio stdin. based on diff from mmcc@ ok millert@
2016-04-16Change last non-/gnu/ fcntl(x, F_GETFL, 0) strays to fcntl(x, F_GETFL).Kenneth R Westerback
No functional change. ok millert@
2016-04-15don't allow removal of /. more robust approach involving stat this time.Ted Unangst
posix uses the language "resolves to the root directory" in this case. ok millert
2016-03-30for some time now mandoc has not required MLINKS to functionJason McIntyre
correctly - logically complete that now by removing MLINKS from base; authors need only to ensure there is an entry in NAME for any function/ util being added. MLINKS will still work, and remain for perl to ease upgrades; ok nicm (curses) bcook (ssl) ok schwarze, who provided a lot of feedback and assistance ok tb natano jung
2016-03-28remove unused variableCharles Longeau
ok schwarze@
2016-03-27actually remove unnecessary includesMichael McConville
from Edgar Pettijohn, ok and with input from tb@
2016-03-23header cleanupmmcc
from Edgar Pettijohn, with a correction from deraadt@
2016-03-22header cleanupmmcc
from Edgar Pettijohn, correction from deraadt@
2016-03-21More ksh POSIX compliance fixes by Martijn Dekker:tb
This simple patch makes the 'command' builtin POSIX-compliant and consistent with other current shells. It fixes two things: a) 'command -v' does not find shell reserved words (a.k.a. keywords). For instance, 'command -v select' outputs nothing but should output 'select'. b) 'command -pv' always outputs the path of an external command, even if 'command -p' would execute a builtin. For instance, 'command -p kill' executes the 'kill' builtin, as expected, but 'command -pv kill' outputs '/bin/kill'. The '-v' option is supposed to reflect what would actually be executed, so 'command -pv kill' should output 'kill'. The -p option sets the PATH to a default system value before doing the search, but that has no bearing on the fact that builtins take precedence over external commands. The patch fixes both issues for 'command' without affecting the behaviour of the ksh-specific builtin 'whence', which is handled by the same C function. Regression test added to obsd-regress.t. Issues found and fixed by Martijn Dekker, ok millert@
2016-03-20Use fcntl(fd, F_SETFL, flags) to clear O_NONBLOCK instead ofTodd C. Miller
ioctl(fd, FIONBIO, ...). OK krw@
2016-03-20Currently we have about a 50/50 split over fcntl(n, F_GETFL [,0])Kenneth R Westerback
idioms. Adopt the more concise fcntl(n, F_GETFL) over fcntl(n, F_GETFL, 0) where it is obvious further investigation will not yield and even better way. Obviousness evaluation and ok guenther@
2016-03-19Turn off the close-on-exec bit with fcntl() instead of ioctl().Kenneth R Westerback
Remove some now useless "#include <ioctl.h>" lines. Inspired by & ok millert@
2016-03-18Replace ioctl(fd, FIOCLEX) with fcntl(fd, F_SETFD, FD_CLOEXEC)Todd C. Miller
No functional change. "I like the idea" from guenther@
2016-03-17remove some ARGSUSEDmmcc
2016-03-17simplify previous; ok bentleyJason McIntyre
2016-03-17Switch (non-curses, non-ksh) programs that use COLUMNS to a single idiom.Anthony J. Bentley
Previously behaviors were all over the map. This changes them to use COLUMNS first, and either terminal width or a hardcoded value (typically 80) as appropriate. ok deraadt@; man bits ok jmc@
2016-03-14replace __progname with getprogname(3)mmcc
from Michal Mazurek, ok tb@
2016-03-11Mark up COLUMNS as an environment variable.Anthony J. Bentley
ok jmc@ schwarze@
2016-03-07Make cp -i behave as mv -i or rm -i, independently of whether stdintb
is a tty or not. From Timo Buhrmester. ok jca@
2016-03-07simplify print formatting logic, replace exit() in main() with returnmmcc
from Michal Mazurek, ok tb@
2016-03-06tweak previous a little;Jason McIntyre