mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-13 21:44:16 +00:00
parent
eac9ec9093
commit
60ce10ad84
1 changed files with 6 additions and 0 deletions
|
@ -17,6 +17,12 @@ function eval -S -d "Evaluate parameters as a command"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if not string length -q -- $argv
|
||||||
|
# If the argument is empty, eval should return 0 for compatibility with other shells.
|
||||||
|
# See #5692.
|
||||||
|
return 0
|
||||||
|
end
|
||||||
|
|
||||||
# If we are in an interactive shell, eval should enable full
|
# If we are in an interactive shell, eval should enable full
|
||||||
# job control since it should behave like the real code was
|
# job control since it should behave like the real code was
|
||||||
# executed. If we don't do this, commands that expect to be
|
# executed. If we don't do this, commands that expect to be
|
||||||
|
|
Loading…
Reference in a new issue