summaryrefslogtreecommitdiffstats
path: root/Src/parse.c
Commit message (Collapse)AuthorAgeFilesLines
* 54104: fix bug with packing strings into wordcodeOliver Kiddle2025-11-241-1/+3
|
* 54103: support > and < comparisons via the test builtinOliver Kiddle2025-11-241-0/+8
|
* 54002: silence compiler warning for static functionOliver Kiddle2025-10-241-1/+0
|
* 53738: Fix memory leak in command substitution.Peter Stephenson2025-06-101-0/+2
| | | | This happened if the substituion had a here document but the parse failed.
* github #126: Fix some typosWu, Zhenyu2025-01-271-1/+1
|
* 52750: remove ansi2knr support for old pre-ansi K&R compilersOliver Kiddle2024-03-181-1/+1
|
* 52612: %l replacment of zwarning() does literal string outputBart Schaefer2024-03-021-5/+4
|
* Typos in previous commit commentsBart Schaefer2024-02-031-1/+1
|
* unposted: Record as comments some notes about namespace usage exceptions.Bart Schaefer2024-02-031-0/+2
|
* unposted: Fix longstanding typo in commentBart Schaefer2023-12-091-1/+1
|
* 52204: fix thinko, unmeta() buffer should not be freedBart Schaefer2023-10-051-2/+0
|
* 52193: handle UTF8-encoded USERNAME and therefore home directory in zcompileBart Schaefer2023-10-011-3/+9
| | | | Includes one unposted thinko fix ztrdup -> dupstring
* 51307: Improve error on attempt to define function from aliased namePeter Stephenson2023-02-021-0/+3
|
* 51212: remove STOUC() macroOliver Kiddle2022-12-161-3/+3
| | | | | This served as a workaround for ancient compilers where casts to unsigned char were broken.
* Unposted: Fix typo in commentBart Schaefer2022-10-231-1/+1
|
* 50341: disallow here-document markers containing newlineBart Schaefer2022-06-081-0/+3
|
* 49433: Don't assume EPROG references are bounded by function depth.Peter Stephenson2021-10-051-4/+0
| | | | We use references for efficient function copy, so there is no useful limit any more.
* 49378: skip check for collision of aliases and functions when NO_EXECMarlon Richert2021-09-061-1/+1
|
* 49269: Fix "[ ! -o ]".Peter Stephenson2021-08-101-1/+1
| | | | | This should detect "-o" as non-empty string; "-a" was alrady working. Update the test.
* 47300: Document the EC_NODUP, EC_DUP, EC_DUPTOK triplet.Daniel Shahaf2020-08-081-0/+7
| | | | All uses reviewed; no functional change.
* Add SHORT_REPEAT optionMikael Magnusson2020-04-021-1/+1
|
* 45583/0009: Add end-of-options guard support to 'function -T'.Daniel Shahaf2020-03-221-4/+12
|
* 45583/0008: Add the 'function -T' syntax.Daniel Shahaf2020-03-221-2/+9
| | | | Config/version.mk was bumped in the previous commit.
* 45583/0007: WC_FUNCDEF: Add a placeholder element.Daniel Shahaf2020-03-221-0/+5
|
* 45583/0006: internal: Add some comments for orientation. No functional change.Daniel Shahaf2020-03-221-8/+8
|
* 45583/0005: internal: Document the WC_FUNCDEF data layout for anonymous ↵Daniel Shahaf2020-03-221-2/+8
| | | | functions with arguments (follow-up to 29492)
* 45583/0004: internal: Add some comments around wordcodes. No functional change.Daniel Shahaf2020-03-221-0/+7
|
* 45583/0003: internal: Add some comments around Eccstr. No functional change.Daniel Shahaf2020-03-221-4/+27
|
* 45583/0002: internal: Reduce some variables' visibility. No functional change.Daniel Shahaf2020-03-221-8/+7
|
* 45004: Fix typos in commentsMartijn Dekker2019-12-111-1/+1
|
* 44446: Fix here document with file descriptor declarator.Peter Stephenson2019-06-241-1/+2
| | | | Add unit test.
* 44296: "typeset Q= {X}" crashed the shell.Peter Stephenson2019-05-141-0/+8
|
* 44122: turn int into long to avoid overflowKamil Dudka2019-03-141-2/+2
|
* Allow short loops with "while"Peter Stephenson2018-04-231-1/+3
|
* 42365: Use .zwc file if timestamp identical to source.Martijn Dekker2018-03-051-4/+4
| | | | This can happen if the files are bundled together.
* 42110: Fix redirections between variable assignments at start of linePeter Stephenson2017-12-121-0/+4
|
* 41802 (minor tweaks): use heap during shell function call.Peter Stephenson2017-10-041-1/+2
| | | | | | Replaces stack for more efficient memory management. Also fix debug message when FUNCNEST is increased.
* 41633: Fix problem backgrounding function definitions.Peter Stephenson2017-09-041-1/+6
| | | | | Owing to being marked as simple sublists the instruction to background was ignored. This applied to anonymous functions.
* 41504: make empty strings work in case patterns with no leading parenthesisPeter Stephenson2017-08-091-10/+38
|
* 41402: Delay has_tokens() in ecstrcode as may not be neededSebastian Gniazdowski2017-07-091-1/+5
|
* 41402: Add hasher to ecstrcode to reduce string comparisonsSebastian Gniazdowski2017-07-091-1/+5
|
* 40173: Off-by-one error checking for {varid}.Peter Stephenson2017-05-081-1/+1
| | | | | This caused a single unprintable character in braces before a redirection to be treated as an indentifier.
* users/22688: Allow mixing redirs and arguments after anon functions.Peter Stephenson2017-05-081-4/+15
| | | | | These are parsed differently from the case of normal functions which can't take normal arguments at that point.
* Fix combination of HERE document and |&.Peter Stephenson2017-05-081-1/+1
| | | | | | | | A missing flag setting up the HERE document mean that the size of the wordcode needed to append the 2>&1 was counted incorrectly, so the resulting wordcode was garbled. Add test.
* 40760: Always tokenize unquoted - to Dash.Peter Stephenson2017-03-071-14/+27
| | | | | | This fixes use of pattern match character ranges in unusual contexts. Attempt to detect a tokenized - in cases where we don't care.
* 40453: signal handler safety for callers of patcompile(PAT_STATIC), which is ↵Barton E. Schaefer2017-01-291-0/+1
| | | | not re-entrant.
* Add features associated with autoloading a function using an absolutePeter Stephenson2017-01-111-9/+15
| | | | | | | | | | | | | path. -d defaults to normal fpath -r remembers the path without actually loading. May be combined with -d. -R does the same but it's an error if not found -X can now take a directory path: this is used to output not yet loaded functions that have an associated path.
* 40306 with doc tweaks: Change behaviour expanding alias in () function ↵Peter Stephenson2017-01-101-0/+14
| | | | | | | definition. Now an error unless the () is part of the same error as the name. Add ALIAS_FUNC_DEF option to allow it again.
* 39777: $() is a valid empty command substitutionPeter Stephenson2016-10-301-1/+1
|
* 39332: support ksh's [[ -v varname ]] condition for checking if variables ↵Oliver Kiddle2016-09-161-2/+2
| | | | are set