summaryrefslogtreecommitdiff
path: root/bin/sh/parser.c
AgeCommit message (Expand)Author
2025-11-07sh: Implement simple parameter expansion in PS1 and PS2Matthew Phillips
2023-11-26bin: Automated cleanup of cdefs and other formattingWarner Losh
2023-11-26bin: Remove ancient SCCS tags.Warner Losh
2023-09-23sh: implement PS1 \D to print current timePiotr Pawel Stefaniak
2023-09-12sh: reindent a for loop in parser.cPiotr Pawel Stefaniak
2023-08-16Remove $FreeBSD$: one-line .c patternWarner Losh
2022-12-22sh(1): Allow non-printing characters in prompt stringsJuraj Lutter
2021-10-27sh: Fix heredoc at certain places in case and forJilles Tjoelker
2019-01-24Make sh(1) support \u in PS1. This removes one fork/exec on interactiveEdward Tomasz Napierala
2018-12-28Make sh(1) collapse $HOME into "~" in PS1.Edward Tomasz Napierala
2018-05-21sh: Split CNL syntax category to avoid a check on state[level].syntaxJilles Tjoelker
2018-05-20sh: Allow unquoted newlines in word in ${param+word} etc.Jilles Tjoelker
2017-11-20General further adoption of SPDX licensing ID tags.Pedro F. Giffuni
2017-02-28Renumber copyright clause 4Warner Losh
2016-06-01The (i < PROMPTLEN - 1) test added by r300442 in the code for the defaultDon Lewis
2016-05-23Hopefully fix Coverity CID 1008328 (Out-of-bounds write) in /bin/sh.Don Lewis
2016-05-04sh: Handle empty hostname and $PWD when building promptEric van Gyzen
2016-04-16sh: Write LINENO value to stack string directly.Jilles Tjoelker
2016-04-13sh: Simplify code by removing variable bracketed_name.Jilles Tjoelker
2016-04-09sh(1): replace 0 with NULL for pointers.Pedro F. Giffuni
2016-03-02sh: Remove a redundant STPUTC check.Jilles Tjoelker
2016-02-21sh: Optimize setprompt(0).Jilles Tjoelker
2015-09-30wordexp: Rewrite to make WRDE_NOCMD reliable.Jilles Tjoelker
2015-09-02sh: Allow empty << EOF markers.Jilles Tjoelker
2015-08-23sh: Don't create bad parse result when postponing a bad substitution error.Jilles Tjoelker
2015-08-20sh: Avoid negative character values from $'\Uffffffff' etc.Jilles Tjoelker
2015-02-15sh: Prefer "" to nullstr where possible.Jilles Tjoelker
2014-11-22sh: Prepend "$0: " to error messages if there is no command name.Jilles Tjoelker
2014-10-19sh: Allow backslash-newline continuation in more places:Jilles Tjoelker
2014-10-15sh: Make parseredir() a proper function instead of an emulated nestedJilles Tjoelker
2014-10-15sh: Remove more gotos.Jilles Tjoelker
2014-10-03sh: Fix LINENO and prompt after $'\0 and newline.Jilles Tjoelker
2014-09-14sh: Remove arbitrary length limit on << EOF markers.Jilles Tjoelker
2014-09-14sh: Make checkend() a real function instead of an emulated nested function.Jilles Tjoelker
2014-09-14sh: Add some const keywords.Jilles Tjoelker
2014-01-26sh: Allow aliases to force alias substitution on the following word.Jilles Tjoelker
2013-08-30sh: Simplify list() in the parser.Jilles Tjoelker
2013-08-30sh: Separate out nbinary allocation into a function.Jilles Tjoelker
2013-08-30sh: Use makename() where possible.Jilles Tjoelker
2013-08-30sh: Add a function for the case where one token is required in the parse.Jilles Tjoelker
2013-08-30sh: Cast -1 to pointer rather than pointer to variable of wrong type.Jilles Tjoelker
2013-08-25sh: Disallow empty simple commands.Jilles Tjoelker
2013-08-16sh: Remove unnecessary reset functions.Jilles Tjoelker
2013-08-14sh: Allow a lone redirection before '|', ';;' or ';&'.Jilles Tjoelker
2013-07-25sh: Remove an incorrect comment.Jilles Tjoelker
2013-07-25sh: Remove #define MKINIT.Jilles Tjoelker
2013-07-25sh: Remove mkinit.Jilles Tjoelker
2013-04-01sh: Fix various compiler warnings.Jilles Tjoelker
2013-01-13sh: Fix crash when parsing '{ } &'.Jilles Tjoelker
2013-01-13sh: Don't lose $? when backquoted command ends with semicolon or newline.Jilles Tjoelker