aboutsummaryrefslogtreecommitdiff
path: root/bin/sh/parser.c
Commit message (Expand)AuthorAgeFilesLines
* bin: Automated cleanup of cdefs and other formattingWarner Losh2023-11-271-3/+0
* bin: Remove ancient SCCS tags.Warner Losh2023-11-271-3/+0
* sh: implement PS1 \D to print current timePiotr Pawel Stefaniak2023-09-231-0/+44
* sh: reindent a for loop in parser.cPiotr Pawel Stefaniak2023-09-121-119/+123
* Remove $FreeBSD$: one-line .c patternWarner Losh2023-08-161-2/+0
* sh(1): Allow non-printing characters in prompt stringsJuraj Lutter2022-12-221-8/+39
* sh: Fix heredoc at certain places in case and forJilles Tjoelker2021-10-271-7/+9
* Make sh(1) support \u in PS1. This removes one fork/exec on interactiveEdward Tomasz Napierala2019-01-241-0/+61
* Make sh(1) collapse $HOME into "~" in PS1.Edward Tomasz Napierala2018-12-281-2/+20
* sh: Split CNL syntax category to avoid a check on state[level].syntaxJilles Tjoelker2018-05-211-2/+3
* sh: Allow unquoted newlines in word in ${param+word} etc.Jilles Tjoelker2018-05-201-1/+2
* General further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-201-0/+2
* Renumber copyright clause 4Warner Losh2017-02-281-1/+1
* The (i < PROMPTLEN - 1) test added by r300442 in the code for the defaultDon Lewis2016-06-011-1/+1
* Hopefully fix Coverity CID 1008328 (Out-of-bounds write) in /bin/sh.Don Lewis2016-05-231-4/+6
* sh: Handle empty hostname and $PWD when building promptEric van Gyzen2016-05-041-2/+3
* sh: Write LINENO value to stack string directly.Jilles Tjoelker2016-04-161-4/+6
* sh: Simplify code by removing variable bracketed_name.Jilles Tjoelker2016-04-131-3/+1
* sh(1): replace 0 with NULL for pointers.Pedro F. Giffuni2016-04-091-1/+1
* sh: Remove a redundant STPUTC check.Jilles Tjoelker2016-03-021-1/+1
* sh: Optimize setprompt(0).Jilles Tjoelker2016-02-211-0/+2
* wordexp: Rewrite to make WRDE_NOCMD reliable.Jilles Tjoelker2015-09-301-0/+33
* sh: Allow empty << EOF markers.Jilles Tjoelker2015-09-021-2/+8
* sh: Don't create bad parse result when postponing a bad substitution error.Jilles Tjoelker2015-08-231-2/+3
* sh: Avoid negative character values from $'\Uffffffff' etc.Jilles Tjoelker2015-08-201-5/+6
* sh: Prefer "" to nullstr where possible.Jilles Tjoelker2015-02-151-1/+1
* sh: Prepend "$0: " to error messages if there is no command name.Jilles Tjoelker2014-11-221-0/+2
* sh: Allow backslash-newline continuation in more places:Jilles Tjoelker2014-10-191-32/+43
* sh: Make parseredir() a proper function instead of an emulated nestedJilles Tjoelker2014-10-151-59/+58
* sh: Remove more gotos.Jilles Tjoelker2014-10-151-10/+7
* sh: Fix LINENO and prompt after $'\0 and newline.Jilles Tjoelker2014-10-031-0/+7
* sh: Remove arbitrary length limit on << EOF markers.Jilles Tjoelker2014-09-141-21/+17
* sh: Make checkend() a real function instead of an emulated nested function.Jilles Tjoelker2014-09-141-36/+39
* sh: Add some const keywords.Jilles Tjoelker2014-09-141-1/+1
* sh: Allow aliases to force alias substitution on the following word.Jilles Tjoelker2014-01-261-0/+6
* sh: Simplify list() in the parser.Jilles Tjoelker2013-08-301-21/+22
* sh: Separate out nbinary allocation into a function.Jilles Tjoelker2013-08-301-21/+22
* sh: Use makename() where possible.Jilles Tjoelker2013-08-301-22/+5
* sh: Add a function for the case where one token is required in the parse.Jilles Tjoelker2013-08-301-31/+23
* sh: Cast -1 to pointer rather than pointer to variable of wrong type.Jilles Tjoelker2013-08-301-1/+1
* sh: Disallow empty simple commands.Jilles Tjoelker2013-08-251-8/+4
* sh: Remove unnecessary reset functions.Jilles Tjoelker2013-08-161-8/+1
* sh: Allow a lone redirection before '|', ';;' or ';&'.Jilles Tjoelker2013-08-141-0/+3
* sh: Remove an incorrect comment.Jilles Tjoelker2013-07-251-1/+1
* sh: Remove #define MKINIT.Jilles Tjoelker2013-07-251-2/+2
* sh: Remove mkinit.Jilles Tjoelker2013-07-251-4/+4
* sh: Fix various compiler warnings.Jilles Tjoelker2013-04-011-5/+6
* sh: Fix crash when parsing '{ } &'.Jilles Tjoelker2013-01-131-2/+2
* sh: Don't lose $? when backquoted command ends with semicolon or newline.Jilles Tjoelker2013-01-131-1/+2
* sh: Remove special support for background simple commands.Jilles Tjoelker2011-06-181-3/+2