summaryrefslogtreecommitdiff
path: root/bin/ksh/lex.c
AgeCommit message (Expand)Author
2016-03-04don't parse (...|...) patterns in variable substitution inside double quotesDmitrij Czarkoff
2015-12-30rename global "e" to genv to avoid accidental shadowing and aliasing.Ted Unangst
2015-12-14Move system headers from sh.h to those files that actually need them.tb
2015-12-14Remove a superfluous macro. No binary change. ok tb@mmcc
2015-11-18Only unget match[] if it has been used, ok sthenNicholas Marriott
2015-11-12Use isdigit() instead of ksh's homebrewed alternative.mmcc
2015-11-01Add uses of areallocarray(). mksh and Bitrig ksh already have similarmmcc
2015-10-19Move string.h include from sh.h to the files that use it.mmcc
2015-10-19Apply style(9) to header includes.mmcc
2015-10-10Add a define for the invalid state, from mksh via Michael McConville.Nicholas Marriott
2015-10-09Lexer states are not needed outside of lex.c.Todd C. Miller
2015-10-05Remove EXTERN from lex.h and put the definitions in lex.c, from MichaelNicholas Marriott
2015-09-30fix error message for csh-history. the lexer needs to back up more.Ted Unangst
2015-09-22Make errorf() and bi_errorf() handle a NULL argument.Todd C. Miller
2015-09-18Last of the (thing *)0 -> NULL, from Michael McConville. No binaryNicholas Marriott
2015-09-17Remove unnecessary casts, from Michael McConville. No binary change.Nicholas Marriott
2015-09-15correct spelling of NULL from (char *)0. from Michael McConville.Ted Unangst
2015-09-10Replace newline and space defines by "\n" and " " directly, from MichaelNicholas Marriott
2015-07-30Fix the baskslash-escaped codes ('\nnn') usage in PS1.Vadim Zhukov
2013-12-17ctype cleanups. Repeated re-audits of this sensitive area by okan andTheo de Raadt
2013-11-12add a variety of missing prototypesTheo de Raadt
2013-03-03Fix quoting in word part of ${var+word} (and similar) when entire thingPhilip Guenther
2013-01-20Fix backslash escaping during filename tab-completion in ksh.Stefan Sperling
2011-03-09substitute '~' for $HOME in the \W prompt case; matches bash's behavior.Okan Demirmen
2008-07-03fix inifinite loop with set -o csh-history and !<space> as input.Otto Moerbeek
2007-06-02s/FALLTROUGH/FALLTHROUGH/Moritz Jodeit
2006-07-10fix ksh prompt wrapping, from Marcus Glocker <marcus@nazgul.ch>.Bob Beck
2006-06-16Work around a problem with \$ expansion where \$\$ turned into pid ($$)Dale Rahn
2006-05-29Implement \$ and \# expansion for PS1. Whoever thought it a cleverOtto Moerbeek
2006-04-10fix lint comments, no functional changes; ok rayJared Yanovich
2005-12-11fix a few name clashes with libc; found by lint. ok deraadt@Otto Moerbeek
2005-09-11Fix " handling in here documents. POSIX says they are not special, soOtto Moerbeek
2005-03-30lots of indentation cleanup, now ksh is readable like our other code.Theo de Raadt
2005-02-21Set \u in prompt expansion to the right value, while avoiding getpw* calls,Otto Moerbeek
2005-01-10In csh-style history expansion, initialize s->u.freeme to NULL so weTodd C. Miller
2004-12-30Remove -Wno-unused form CFLAGS and kill some unused vars found as a result ofOtto Moerbeek
2004-12-30Simplify local copying of PS1 environment variable. Since we noTodd C. Miller
2004-12-29in prompt variable parsing, if either \n or \r (the two characterTheo de Raadt
2004-12-22Fix a use-after-free, that causs core dumps if a shell is killedOtto Moerbeek
2004-12-22Use stdbool.h instead of rolling our own bools.Todd C. Miller
2004-12-20Ansification plus some minor knf. No binary change on i386 andOtto Moerbeek
2004-12-19spacingTheo de Raadt
2004-12-18deregisterTodd C. Miller
2004-12-18Get rid of #ifdef KSH since we don't care about building a V7 style sh andTodd C. Miller
2004-12-18Remove unused OS dependent #ifdef blocks, #defines and macro abstraction.Todd C. Miller
2004-12-12csh-style ! history completion, which can be activated by usingTheo de Raadt
2004-11-10defer ! and !! handling till prompt printing, like real ksh, and this nowTheo de Raadt
2004-11-06\[ and \] delimit blocks of characters which are processed just likeTheo de Raadt
2004-11-06change \w to output ~/subpath type things, except for root of courseTheo de Raadt
2004-11-04do the variety-pack of bash-style \letter expansions on prompt variables.Theo de Raadt