summaryrefslogtreecommitdiff
path: root/bin
AgeCommit message (Collapse)Author
2017-06-17Move win variable.anton
ok deraadt@ tb@
2017-06-16mark files as BUILDFIRST, or write explicit dependencies, so that mostMarc Espie
programs will build even without a make depend first. okay tb@ millert@
2017-06-10missing blank before full stop, found with mandoc -TlintIngo Schwarze
2017-06-07X is not restricted to just the + operator;Jason McIntyre
diff from klemens nanni confirmed by otto
2017-06-01The fact is simple: Subshells have the same PPID as the current shell.Theo Buehler
What is not so simple is squinting hard enough to conclude that POSIX actually says that. I'm still not sure how to do that. Problem with the shell manual pointed out by "Choose a display name". ok otto, halex, jmc
2017-05-31Let the 's' command delete the right number of bytes when UTF-8Ingo Schwarze
characters are involved; similar to what anton@ previously did for 'r'; OK tb@ anton@; also tested by Walter Alejandro Iglesias <wai at roquesor dot com>.
2017-05-31Allow replacement of UTF-8 characters in vi mode.anton
Reported by Walter Alejandro Iglesias on tech@. ok schwarze@ tb@
2017-05-30stop reacharound from w(1) to ps(1); no functional change;Ingo Schwarze
diff from bcallah@; OK tedu@ deraadt@
2017-05-29Change the mmap(2)-based binary history file with lots of magic and aTheo Buehler
tendency for corruption to a simpler plaintext version. To convert your current ksh history to plaintext, issue fc -ln 1 | sed 's/^ //' > ~/ksh_hist.txt before upgrading and use ksh_hist.txt as HISTFILE after the upgrade. Original patch by marco in 2011. Ported to current during g2k16 by me. Testing, bugfixes and improvements in joint work with natano. Additional testing by anton and mestre. Includes some tweaks by anton. Committing now to shake out remaining bugs before 6.2 is cut. ok deraadt, mestre, anton, sthen
2017-05-28chown: Remove SUPPORT_DOT ifdef - it's on by default for 22 yearsAdam Wolk
The old syntax was deprecated 25 years ago when the utility was first standardised in IEEE Std 1003.2-1992 ("POSIX.2"). There was no POSIX version of chown with the dot separator. Let's stop pretending that it will ever go away. OK jung@, deraadt@, jmc@
2017-05-28Fix cursor position while removing characters from the command line.anton
While here, remove a condition that becomes redundant. ok schwarze@ tb@
2017-05-26document behaviour when CDPATH unset;Jason McIntyre
requested by a mail on misc, via otto; ok otto
2017-05-22obvious use for freezero()Theo de Raadt
2017-05-12Improve UTF-8 handling on lines that are wider than the terminal,Ingo Schwarze
in two respects: 1. During output in x_e_putc(), when counting display columns, skip UTF-8 continuation bytes. Fixes backward movements that cause horizontal scrolling. 2. After deleting characters, recalculate the last byte that fits on the line. Patch from <Anton dot Lindqvist at gmail dot com> on tech@. OK millert@ tb@
2017-05-11a little tidy up; from raf czlonkaJason McIntyre
2017-05-01Quiet an "implicit conversion from 'int' to 'char' changes value"Todd C. Miller
warning from clang.
2017-04-28Quiet a clang warning from -Wstring-plus-int. OK naddy@Todd C. Miller
2017-04-26silence clang warnings: add an extra pair of parentheses and stopChristian Weisgerber
passing empty format strings to printf-family functions; ok millert@
2017-04-26In -C mode, process all checksums that match the specified file(s),Todd C. Miller
not just the first one that matches. OK deraadt@
2017-04-17/dev/rmt* is no longer relevant; from miodJason McIntyre
2017-03-29Use strtonum(3) instead of strtol(3). OK deraadt@Todd C. Miller
2017-03-16document the "type" built-in, marked as xsi by posix;Jason McIntyre
2017-03-16document the ulimit built-in, which is now marked xsi by posix;Jason McIntyre
noted by scott cheloha
2017-03-16document the "hash" built-in, moved to (posix) base in issue 7;Jason McIntyre
2017-03-16buffer increase factor belongs in the nmemb field of reallocarray()Theo de Raadt
ok guenther
2017-03-11switch pax to using pledge tape instead of ioctl.Theo Buehler
ok kettenis
2017-02-23SHA-1 collisions have now been found so update some man pages. As noted byDaniel Dickman
minek van on misc@. Thanks. ok tb@, tj@ (and jmc@ is ok with the diff but can't ok the technical content).
2017-02-19Assigning to RANDOM calls srand_deterministic(3), not srand(3),Ingo Schwarze
and simplify the next sentence; triggered by a different patch from Anton dot Lindqvist at gmail dot com. OK millert@ tb@
2017-02-19More whitespace, helps readingJeremie Courreges-Anglas
ok ajacoutot@
2017-02-17In chmod's symbolic mode without -h and -R flags, a missing FTS_COMFOLLOWTheo Buehler
flag to fts_open led to the following behavior: the symlink's permissions were read, changed according to the command line, and transferred to the target file. chflags had a similar problem while chmod was unaffected. Regression introduced in r1.33. Reported by Christopher Wellons, thanks! ok guenther
2017-01-24do not need sys/proc.hTheo de Raadt
2017-01-23Slow down the churn and continue using old pledge name "ioctl" insteadTheo de Raadt
of "tape" for a week or so.
2017-01-23Call isatty() before tcgetattr() in the lex. This is a little redundant,Theo de Raadt
but avoids doing pledge "tty" operations against flat files. The shell's tty will be kind of special in the near future. isatty is also a lot less kernel code to run through the loop.
2017-01-23Split pledge "ioctl" into "tape" and "bpf", and allow SIOCGIFGROUP onlyTheo de Raadt
upon "inet". Adjust the 4 programs that care about this.
2017-01-21Add an explicit syntax() call to indicate that no binary op wasKenneth R Westerback
found. Makes gcc happier. Add __dead to function prototype as we go by. ok guenther@
2017-01-21Nuke whitespace foolish enough to expose itself during the greatKenneth R Westerback
"warning:" rectification.
2017-01-03Allow the omission of one address in (.,.) and (.;.) address rangesTheo Buehler
as per POSIX. With this patch, ",n" is an abbreviation for "1,n", ";n" abbreviates ".;n". The "n," and "n;" variants mean "n,n" and "n;n", respectively. Patch from Jerome FRGAGIC; ok stefan, deraadt
2016-12-26Put some variable declarations under appropriate #if/#endif protectionKenneth R Westerback
so gcc doesn't complain about defining but not using them. typo correction & ok jca@
2016-12-20Fix a bug where archives smaller than 512 bytes would trigger a next volumeMark Kettenis
prompt. From NetBSD. ok millert@, deraadt@
2016-12-16Move declaration of an 'i' inside the scope of its use. Which inKenneth R Westerback
turn is inside an #ifdef. Thus making the code clearer by eliminating an #ifdef in the middle of the declarations. Suggested by millert@
2016-12-16Eliminate some gcc warnings about 'unused variables', mostly byKenneth R Westerback
adding appropriate #ifdef's around declarations. ok millert@ (with a tweak I will commit separately)
2016-12-11I missed a bit of the indentation fix from Kartik Agaram.Todd C. Miller
2016-12-11When ERREXIT (set -e) is in effect, don't disable it after aTodd C. Miller
short-circuited `&&` or `||` chain in later iterations of `for` loops. It should be disabled after a short-circuited `&&` or `||` chain only in the *final* iteration of loops (as well as in conditionals, which was already working). From Kartik Agaram.
2016-12-11In execute() we assign xerrorok to a dummy value if it is NULLTodd C. Miller
so there is no need to check xerrorok for NULL after that. From Kartik Agaram.
2016-12-11Fix for() loop indentation for TCASE in execute() and add someTodd C. Miller
braces for improved readability. Based on a diff from Kartik Agaram.
2016-11-26Remove leftovers of line disciplines that are no more.Martin Pieuchot
ok mikeb@
2016-11-14Remove an escaped blank space and insert an No macro to keep \&; at aTheo Buehler
distance from 'Ar command'. This is schwarze's correct version of an initial incorrect diff from me.
2016-11-14Markup improvements:Ingo Schwarze
1. Mark up reserved words intended to appear at the beginning of command lines with .Ic. 2. Mark up syntax elements intended to appear in the middle of command lines with .Cm. This is not only more systematic, but also makes internal search commands like :tif<enter>, :tstop<enter>, and :t[[<enter> work in man(1).
2016-11-12Fix lexicographic order of shell built-ins: trap comes before true.Theo Buehler
2016-10-26Document LC_CTYPE.Ingo Schwarze
The lack of this entry was reported by Jan Stary <hans at stare dot cz>. OK czarkoff@ jmc@