aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/function.in
Commit message (Collapse)AuthorAge
* Correctly handle mixing named arguments with function nameGravatar ridiculousfish2015-05-17
| | | | | | Before this fix, `function -a arg1 name1` would produce a function named 'arg1'. After this fix, it will produce a function named 'name'. See #2068 for more.
* Add new `functions` flag -V/--inherit-variableGravatar Kevin Ballard2014-10-02
--inherit-variable takes a variable name and snapshots its current value. When the function is executed, it will have a local variable with this value already defined. Printing the function source will include synthesized `set -l` lines for the values. This is primarily useful for functions that are created on the fly, such as in `psub`.