summaryrefslogtreecommitdiff
path: root/bin/ksh
AgeCommit message (Collapse)Author
2014-02-12missing .An macros, based on a patch from Jan Stary <hans at stare dot cz>Ingo Schwarze
2014-01-28update book references;Jason McIntyre
From: Jan Stary tweaked a bit by myself
2014-01-20Obvious .Xr fixes, found while testing mandocdb(8).Ingo Schwarze
2013-12-20Fix a crash in ksh when trying to access ${12345678901234567890}Vadim Zhukov
Input from deraadt@, millert@ and otto@. okay from millert@ plus a willing from deraadt@
2013-12-18incorrect cast for ctype, spotted and repaired by LEVAI DanielTheo de Raadt
2013-12-18Remove artificial limit on the max array index.Todd C. Miller
Adapted from a bitrig commit from Martin Natano. OK zhuk@
2013-12-17ctype cleanups. Repeated re-audits of this sensitive area by okan andTheo de Raadt
myself, with a variety of other people spending some time as well. Thanks.
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