about summary refs log tree commit diff
path: root/Src/parse.c
Commit message (Collapse)AuthorAgeFilesLines
* 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
* unposted: remove duplicated assignmentOliver Kiddle2016-09-151-1/+0
|
* 39292: Distinguish "=" and "==" tests in output.Peter Stephenson2016-09-131-2/+7
| | | | | This is both in xtrace output and shell code rebuilt from internal structures.
* 38111: Remove redundant return values in parsing.Peter Stephenson2016-03-071-11/+4
| | | | Return values from par_list() and par_list1() are no longer used.
* 38106: if...then if...else should be a parse error.Barton E. Schaefer2016-03-061-1/+1
|
* 37700: Teach ${(z)} the 'repeat WORD SUBLIST' syntax.Daniel Shahaf2016-01-291-0/+10
|
* 37469: do NOT allow semicolons in place of line breaks in conditionalsBarton E. Schaefer2015-12-311-14/+16
|
* 37468: allow line breaks in more places in [[ ... ]]Barton E. Schaefer2015-12-311-8/+12
|
* 36974: fix some functions with empty argument listsPeter Stephenson2015-10-271-1/+1
|
* 36566: check for regular file before lseek()Barton E. Schaefer2015-09-191-0/+3
|
* unposted: fix up for 5.0.8-test-2 zsh-5.0.8-test-2Peter Stephenson2015-08-211-1/+1
|
* 36265 plus FAQ: fix alias expansion after "function"Peter Stephenson2015-08-211-2/+3
| | | | | | | Owing to interesting historical parsing, names after the first were treated as command words so had non-global aliases expanded. Add an FAQ note that use of the function keyword works around other alias problems
* 36022 fix bug that some loop constructs could not be interrupted, revise ↵Barton E. Schaefer2015-08-091-0/+8
| | | | | | | | | | | signal queueing There are two underlying ideas here: (1) Keeping signals queued around anything that's doing memory management (including push/pop of the heap) has become crucial. (2) Anytime the shell is going to run a command, be it buitin or external, it must be both safe and necessary to process any queued signals, so that the apparent order of signal arrival and command execution is preserved.
* 35643: Redirections after typeset assignments were broken.Peter Stephenson2015-06-281-0/+2
|
* various posts: Implement assignment parsing for typeset.Peter Stephenson2015-06-241-21/+110
| | | | | | | | | | | | Typeset assignments now work like raw assignments except for no "+=" and no GLOB_ASSIGN. Documented in typeset builtin doc and mentioned in release notes. Tests to ensure basic sanity. Enabled by default, can be turned off by "disable -r" with typeset family of commands.
* 35306: "test -z \(" failed due to parse confusionPeter Stephenson2015-05-271-8/+17
|
* 35250: Fix case documentation (SH_GLOB)Peter Stephenson2015-05-211-2/+2
|