mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 12:53:13 +00:00
Add comment clarifying presence of empty eval
function
This commit is contained in:
parent
b82fa187ea
commit
0cf0829c5f
1 changed files with 10 additions and 1 deletions
|
@ -1,3 +1,12 @@
|
|||
function eval
|
||||
# This empty function is required as while `eval` is implemented internally as
|
||||
# a decorator, unlike other decorators such as `command` or `builtin`, it is
|
||||
# *not* stripped from the statement by the parser before execution to internal
|
||||
# quirks in how statements are handled; the presence of this function allows
|
||||
# constructs such as command substitution to be used in the head of an
|
||||
# evaluated statement.
|
||||
#
|
||||
# The function defined below is only executed if a bare `eval` is executed (with
|
||||
# no arguments), in all other cases it is bypassed entirely.
|
||||
|
||||
function eval
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue