summaryrefslogtreecommitdiff
path: root/bin
AgeCommit message (Collapse)Author
2017-06-29Increase the input line buffer to 4096 bytes.Martijn van Duren
Sounds good to deraadt@ OK anton@
2017-06-29Switch TIOCSTAT to _IO(). Two decades ago it was mistakenly defined toTheo de Raadt
take an argument. Discussed with millert and tedu.
2017-06-28add -v to SYNOPSIS and STANDARDS;Jason McIntyre
2017-06-27fix a few lines of unusual lengthTed Unangst
2017-06-27add a -v verbose flag to cp, mv, and rm. useful for monitoring progress,Ted Unangst
and present on several other systems. some ok, some less ok. from Job Snijders
2017-06-27Tweak previous: align declarations and rename local variable.anton
2017-06-27in recently commited TIOCSTI replacement code, do not assumeTheo de Raadt
little-endian or unsigned char :-) ok anton
2017-06-25No need to NUL-terminate the line buffer since it's handled by x_e_getu8() byanton
now. ok schwarze@
2017-06-25Don't output partial UTF-8 characters in ksh emacs mode. Instead, try to read aanton
complete UTF-8 character first. Fixes an issue while running ksh in tmux where UTF-8 characters inserted in columns other than the last one are discarded. With help from nicm@ and schwarze@ who also wrote the UTF-8 validation, thanks! ok schwarze@
2017-06-22Make sure to abort loops when pressing ^C in csh.anton
Regression found by deraadt@
2017-06-21Minor style(9) corrections and whitespace cleanup to csh.anton
ok deraadt@ tb@
2017-06-21Replace usage of TIOCSTI in csh using a more common IO-loop where ICANON isanton
disabled and a single char of input is read at a time. This requires the line editing capabilities provided when ICANON is enabled to be implemented. With help and feedback from deraadt@
2017-06-20'^T' is documented to be bounded to transpose-chars while in emacsBryan Steele
mode, not "stuff". While here, remove the poorly described "stuff" and "stuff" bind functions as well.. In the unlikely event anyone has those in .kshrc, they'll need to be removed. ok anton@
2017-06-20Don't try to close every single file descriptor up to _SC_OPEN_MAX in csh.anton
Instead, close the fds that reside in between the gaps of used fds and once the largest used fd is reached call closefrom(). ok deraadt@
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.