summaryrefslogtreecommitdiff
path: root/Test/C04funcdef.ztst
AgeCommit message (Collapse)AuthorFilesLines
2022-06-07Tweaks to MULTI_FUNC_DEFPeter Stephenson1-0/+20
Output multiple function definitions using "function" form. Note exceptions to errors with NO_MULTI_FUNC_DEF
2021-09-26unposted: Fix typosDaniel Shahaf1-1/+1
2021-05-1548810: fix potential name clash in test case for autoloadingBart Schaefer1-2/+4
2019-08-03Copy functions using functions -c old new.Peter Stephenson1-1/+68
Documentation and test.
2018-04-1242624 (plus test): avoid freeing memory that's still neededOliver Kiddle1-0/+10
This was occurring in a multiple function definition where a function name is duplicated.
2017-12-1542123 (tweaked): take account of Dash in function names.Peter Stephenson1-0/+9
Needed when comparing word code function name with autoload request. Add test.
2017-10-0241787 (plus minor tweaks): use $FUNCSTACK for function nesting depth.Peter Stephenson1-0/+8
Initialised from existing configuration value.
2017-03-0140622 with typos fixed: functions -Ms.Peter Stephenson1-0/+18
This adds the capability for mathematical functions based on shell functions to have a string argument. Module functions have had this for a long time.
2017-01-3040465: update methods to output $PWD in tests.Peter Stephenson1-3/+7
Use method from B01cd.tst which resolves symbolic links and matches against parameter in output.
2017-01-2840440: Add $functions_source hash to zsh/parameter.Peter Stephenson1-2/+2
This allows you to find out where a function was loaded from.
2017-01-1843080: a few more tests for autoload with absolute pathPeter Stephenson1-0/+25
2017-01-1240342: Add directory name cache for autoload file paths.Peter Stephenson1-0/+39
This renders "autoload /blah/blah/*" as efficient as use of fpath.
2017-01-1240335: More care with autoload function path.Peter Stephenson1-0/+10
If doing "autoload -X", the path present might actually be location of file containing the function with the autoload -X. Add an explicit flag to say it's a directory for autoload.
2017-01-11Add features associated with autoloading a function using an absolutePeter Stephenson1-0/+89
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.
2016-10-0539566: Improve usefulness of command_not_found_handler.Peter Stephenson1-3/+2
Don't behave as if command not found if return status is non-zero as this may simply be the return status of the replacement command. Let the function report a command not found instead.
2016-08-0538991: Make 'whence -v autoloaded-function' shows the defining filename.Daniel Shahaf1-0/+10
This may also fix a problem whereby the %x prompt escape evaluated to a function name rather than a filename, since %x is also backed by scriptfilename.
2016-01-2537765: Use FS_FUNC on fucstack to find autoload -X target.Peter Stephenson1-0/+13
This is better than scriptname which can be updated due to e.g. intervening "eval".
2015-08-21Test for 36265, no alias expansion after "function"Peter Stephenson1-0/+13
2015-01-10test for alias expansion in command substitutionPeter Stephenson1-0/+12
2014-10-0333345: fix anonymous function complex command handling.Peter Stephenson1-0/+4
Longstanding problem caused simple anonymous function incorrectly to reset the overall "complext" state, causing wordcode to be diverted into execsimple(), which caused a crash 'cos ist wasn't simple.
2014-10-0333343: Variant anonymous function synax with arguments.Peter Stephenson1-0/+6
Don't expand arguments as if in command position. Test.
2014-04-1832552 (updated by 32560): fix segfault when using process substitution in ↵Andrew Waldron1-0/+5
anonymous function argument list Also disallow process substitution in function name position.
2012-10-0730718: emulate command evaluations should apply sticky emulationPeter Stephenson1-0/+17
to autoloads, too
2011-08-0329633: more care with anonymous and other functionsPeter Stephenson1-0/+6
2011-07-2829626: arguments to anonymous functions shouldn't be parsed as command wordsPeter Stephenson1-0/+17
2011-06-1929492: add argument handling to anonymous functionsPeter Stephenson1-1/+28
2009-07-1127129: fix status at start of function, command subst, etc.Peter Stephenson1-0/+7
2009-07-1027126: a few more contexts where executing empty lists gives status zeroPeter Stephenson1-0/+15
2008-12-29clean up test temporary filesGeoff Wing1-0/+4
2008-06-3025255: add anonymous function capabilityPeter Stephenson1-0/+79
2007-07-1323680: tests for 23671Peter Stephenson1-0/+29
2006-04-1922416, tweaked: math functions via shell functionsPeter Stephenson1-0/+59
unposted: add styles to pick-web-browser
2001-04-02moved from ./Test/09funcdef.ztstSven Wischnowsky1-0/+13