summaryrefslogtreecommitdiff
path: root/bin/ksh/lex.c
AgeCommit message (Expand)Author
2018-01-15Stop pretending we support building ksh without EDIT/HISTORY supportJeremie Courreges-Anglas
2018-01-06Bring back the sign compare changes, this time with a fix from otto@Todd C. Miller
2018-01-04Back out sign compare changes that appear to cause problems on hppa.Todd C. Miller
2018-01-01Add WARNINGS=yes to ksh and fix the resulting sign compare warnings.Todd C. Miller
2017-12-27Add -Wshadow to Makefile and fix the resulting warnings. Many ofTodd C. Miller
2017-12-12Include hostname in shell prompts by defaultTheo Buehler
2017-12-07Drop the unused second argument from set_prompt(). It used to be used forTheo Buehler
2017-07-04Backout previous due to a bug discovered by zhuk@ that requires some tinkeringanton
2017-07-04Add support for pattern substitution to variables in ksh using a common syntaxanton
2016-04-27Do not handle echo "`echo \"hi\"`" in POSIX mode differently than inChristian Weisgerber
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