summaryrefslogtreecommitdiff
path: root/bin/ksh
AgeCommit message (Collapse)Author
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-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-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-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-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-04-19handle long long time_tTheo de Raadt
ok millert tedu
2013-04-19Add support for printing long long (%lld). OK deraadt@Todd C. Miller
2013-04-16remove unneccessary time_t * castTheo de Raadt
2013-04-05SECONDS is, in a highly theoretical way, not y2k38 safe. comment it.Ted Unangst
2013-03-28Don't die with SIGFPE on LONG_MIN / -1 or % -1. Instead make LONG_MIN /Nicholas Marriott
-1 == LONG_MIN and % -1 == 0. ok matthew deraadt
2013-03-20Remove bogus #if 0'd code. As the comment says, POSIX doesn't need this.Todd C. Miller
OK martynas@
2013-03-18Keep documentation in sync with reality and update binding examples.Martin Pieuchot
This should have been part of the keybinding rewrote when support for multi-character sequences has been added. Pointed out by mikeb@
2013-03-03Fix quoting in word part of ${var+word} (and similar) when entire thingPhilip Guenther
is quoted or in a here-doc. Patch from Alexander Polakov (plhk (at) sdf.org). ok mpi@ jung@
2013-01-21revert the tweak part of the last commit which, apart from theAlexander Hall
questionable functionality of being able to expand environment variables that did not match a filename, preserved the annoyance of having stuff like "~/nonexistant" expanded to "~/nonexistant\* " ok stsp@ mpi@
2013-01-20Fix backslash escaping during filename tab-completion in ksh.Stefan Sperling
Diff originally submitted by Alexander Polakov, with a small tweak from me to avoid breaking tab-completion of environment variables (problem pointed out by bentley). ok sthen halex mpi
2013-01-17remove some uesless Pp;Jason McIntyre
2012-09-10fake a sigwinch after each job, so if the terminal changes size,Ted Unangst
we'll notice and update
2012-09-06Avoid modifying argv when building argv for $* and $@ since it willTodd C. Miller
affect ps output. This can happen when command line options are specified, e.g. "sh -c command". Based on a diff from espie@ OK espie@
2012-09-05backout, Todd's version may be cleaner, but it's also wrong.Marc Espie
2012-09-05sh -c should not munge argv[].Marc Espie
This fixes ps -ww output. joint work by millert@ and me@. okay otto@, deraadt@ "feel free to commit my version" millert@
2012-07-08Document ${var[@]} and ${var[*]}Philip Guenthe
ok espie@
2012-06-27fptreef() always returns 0 and we never use the return value anyway,Otto Moerbeek
so make it void; from Michael W. Bombardieri.
2012-06-19for arithmetic expressions, note that:Jason McIntyre
+A parameter that is NULL or unset evaluates to 0. original diff from robert peichaer this version from naddy
2012-06-10Correctly expand bindings containing macros. Fix a regression introducedMartin Pieuchot
in the keybinding system rewrite, reported by Lars Engblom.
2012-04-30generalise ksh keybinding system - bindings are no longer limited inDamien Miller
length and need not start with ESC or ^X; patch from marco@ feedback mpi@
2012-02-19Allow for more vars in hash table, improve hash function, increaseOtto Moerbeek
hash table size sooner. Based on suggestion from Michael Niedermayer. ok krw@ mpi@
2012-02-02bound chaeck table expansion; problem seen by Michael Niedermayer;Otto Moerbeek
ok deraadt@ kili@
2011-10-11gc unused var; from Michael W. BombardieriOtto Moerbeek
2011-09-07beter determination if the shell is restricted; from Alf Schlichting.Otto Moerbeek
ok jasper@ millert@
2011-09-05Fix hang in emacs mode. To reproduce the hang go like: "^[16000l" whichMarco Peereboom
would insert 16000 letter l'. Going over the line limit makes no sense so limit it's repetition and prevent the hang in the process. ok guenther
2011-09-03make -column lists pretty again;Jason McIntyre
specifically, rewrite them to permit some markup in the column headers, and use "Ta" instead of literal tabs; mandoc does not currently match groff 100%, but a mandoc fix may be some time off, and we've gone enough releases with poorly formatting column lists. in some cases i have rewritten the lists as -tag, where -column made little sense.
2011-05-30typo; Alexander PolakovMartynas Venckus
2011-04-23improve line breaking in SYNOPSIS now that semantics of the .Bk macroIgor Sobrado
has changed to conform with modern groff releases. diff for route6d(8) written mostly by schwarze@, with lots of useful advice from jmc@. ok jmc@, schwarze@
2011-03-15fix uninitialized variable warnings (lifted from mksh).Okan Demirmen
noticed by and ok kevlo@
2011-03-14remove unused SILLY game of life.Okan Demirmen
no binary change. sure @deraadt