summaryrefslogtreecommitdiff
path: root/bin/ksh
AgeCommit message (Collapse)Author
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
2011-03-09substitute '~' for $HOME in the \W prompt case; matches bash's behavior.Okan Demirmen
feedback from Dan Harnett OK deraadt@
2010-09-20according to ingo, it isn;t a problem to have empty [BDS]q macros, soJason McIntyre
revert that part of yesterday's diffs;
2010-09-18some macro cleanup:Jason McIntyre
- remove some old groff workarounds in SYNOPSIS - avoid "Op ... Oc" constructions - avoid empty Sq/Dq - change some incorrect Xr
2010-07-15When the first argument or arguments of a macro are opening delimitersIngo Schwarze
(parentheses and/or square brackets), both modern groff and mandoc first output those leading delimiters as plain text, then start the macro scope after these opening delimiters. This is similar to printing trailing punctuation and trailing closing delimiters on a macro line outside and after the macro scope. For example, ".Sq ( text )" is "(`text')", not "`(text)'". Thus, we now need to quote leading opening delimiters when we want them inside the macro scope. These are the cases in src/bin. "makes sense" jmc@
2010-07-12ksh.1: add ((, )), ]], and `name' to the list of reserved words for compoundsJason McIntyre
sh.1: add ]] and `name' to the list; additionally document the commands `select' (requested by Ross L Richardson) and [[ ok millert sobrado
2010-05-20Escape "=", remove if 0'd out code and simplify check in x_print_expansions.Federico G. Schwindt
millert@ ok some time ago.
2010-05-19properly keep track of the line number after a trap.Jasper Lievisse Adriaanse
this fixes pr 6195. diff from manuel giraud, thanks. ok kili@
2010-05-10tweak previous;Jason McIntyre
2010-05-10unset doesn't fail except for read-only variables and functionsMatthias Kilian
ok guenther@
2010-05-01Correct a comment; from dawedawe (at) gmx.dePhilip Guenthe
2010-03-27`b' and `c' arguments to mknod are not optional; from LEVAI DanielJason McIntyre
c_sh.c part from sobrado; ok millert guenther
2010-03-24fix the cases where ${name#pat} and ${name%pat} will generate an empty wordFederico G. Schwindt
when they shouldn't. originally from mksh but modified to handle the case when the expr is quoted as noticed by halex@. input from guenther@ and halex@, millert@ ok
2010-02-26Array indices are limited to 0 through 10239 now.william
ok jmc deraadt
2010-02-25get rid of overlapping blocks discouraged by mdoc.samples(7);Ingo Schwarze
found by and unbreaking the build with mandoc(1); "fine" jmc@ sobrado@
2010-01-04Crank max array size in ksh to 10K-1, since 2047 is too restrictive.Theo de Raadt
Please keep in mind that ksh accesses are not O(1) in any sense. Needed by todd, ok otto, guenther
2009-12-13remember to restore errno (ie. stop someone from making a mistake later)Theo de Raadt
ok guenther
2009-12-12a dangling do / while that was very very uglyTheo de Raadt
2009-10-28rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andTheo de Raadt
unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms
2009-07-02avoid infinite recursion if unlink fails. reported by Stefan PetterssonMartynas Venckus
ok theo, millert@
2009-06-29make VSEARCH werase act like regular werase after the last change.Martynas Venckus
vi back-words and emacs kill-region are not completely the same. ok merdely@, millert@. "Get it in" Darrin Chandler
2009-06-10Fix problem with ^w fix that broke 'B'Michael Erdely
Found by Daniel LEVAI Fix by Darrin Chandler ok millert@
2009-06-04"make ksh vi mode handle werase more like vi. It's really irritating toMichael Erdely
have whole paths go away on ^W instead of just the last bit." "That looks right to me" millert@, "YES kthx bye!" thib@
2009-06-02fix macro handlingAlexander Hall
2009-06-01please sthen the 80 character pedantTheo de Raadt
2009-06-01"let --" was crashing ksh; found by phy0@rambler.ru. Various other expressionsTheo de Raadt
involving ++ and -- also ran into this. Insufficient checks for end of parse in the tokenizer made it assume that an lvalue had been found ok millert otto
2009-05-28fix missing bracket by slightly rewriting; from Alan R. S. BuenoJason McIntyre
2009-05-05Fix usage string for mknod builtin.Todd C. Miller
2009-04-19don't print extraneous padding characters when tab-completion file/commandStuart Henderson
lists encounter a name too long for the width of the terminal. from Matthew Haub, no objections krw@.
2009-03-06after some discussion with millert, pull in the character class infoJason McIntyre
from glob(7) to the shell pages - they have their own glob stuff, and pointing to glob(7) is just not helpful. ok millert
2009-03-05Add glob(7) and refer to it. OK jmc@ sobrado@Todd C. Miller
2009-03-03Add POSIX character class support ([:alpha:] and friends) to ksh globbing.Todd C. Miller
OK deraadt@ krw@ jmc@ sobrado@
2009-03-01Fix PR #723: test(1) operator precedence inconsistent with POSIXOtto Moerbeek
Make sure ksh builtin test and test(1) do not differ. From Christiano Farina Haesbaert. ok miod@
2009-02-07some tweaks for previous that got missed;Jason McIntyre
2009-02-07Ensure that *wp isn't NULL.Matthias Kilian
ok otto@
2009-02-07Make built-in echo behave according to POSIX when set -o posix is in effect:Philip Guenthe
the only option is -n, and only one of those is parsed. diff from Ingo Schwarze ok otto@ kili@; manpage changes ok jmc@