summaryrefslogtreecommitdiff
path: root/bin
AgeCommit message (Collapse)Author
2017-07-26Align variables and put logical operators at EOL. No binary change.anton
2017-07-26Postpone printing of prompt if filec is enabled in csh. Any I/O should beanton
performed first when canonical mode has been disabled on the tty just like ksh does. Discovered by the regress tests. Joint work with bluhm@, ok deraadt@
2017-07-24Fix off-by-one error introduced in the previous commit.Theo Buehler
ok jca
2017-07-24Prettify, simplifyJeremie Courreges-Anglas
Input & ok tb@
2017-07-24Use memmove instead of a hand-rolled loopJeremie Courreges-Anglas
A tad faster in my HISTFILE "benchmarks". ok tb@
2017-07-24Add < and > to the comment describind the grammar.Jeremie Courreges-Anglas
Picked in a diff from Klemens Nanni
2017-07-22Use monotonic clock for the time command in csh and ksh.anton
From Scott Cheloha ok tb@
2017-07-18Restore tty when aborting loop.anton
ok deraadt@
2017-07-10remove misc. depend and yacc nits that no longer matter.Marc Espie
okay millert@
2017-07-09remove redundant variable declarations in Makefiles, since those areMarc Espie
the default. okay millert@
2017-07-06fix broken cross references; found with mandoc -TlintIngo Schwarze
2017-07-05nits about trailing punctuation found with mandoc -TlintIngo Schwarze
2017-07-04Backout previous due to a bug discovered by zhuk@ that requires some tinkeringanton
and is not an easy fix for now.
2017-07-04Add support for pattern substitution to variables in ksh using a common syntaxanton
borrowed from ksh93. Survived a ports build performed by naddy@ and encouraged by many.
2017-07-03no need to generate y.tab.h if nothing uses it, set YFLAGS to nothingMarc Espie
instead of CLEANFILES += y.tab.h okay millert@
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