diff options
author | Konrad Borowski <x.fix@o2.pl> | 2015-01-17 11:50:23 +0100 |
---|---|---|
committer | Konrad Borowski <x.fix@o2.pl> | 2015-01-17 11:50:23 +0100 |
commit | e529b78365e0a808e0b926b673c5297283fe9765 (patch) | |
tree | 90df1038e2851ed1d834ecaec2ad357af0334599 /share/functions/eval.fish | |
parent | 9374494d2b72c8908672407e27b359e05e349d09 (diff) |
Don't define unnamespaced internal function.
Diffstat (limited to 'share/functions/eval.fish')
-rw-r--r-- | share/functions/eval.fish | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/share/functions/eval.fish b/share/functions/eval.fish index a982a00f..5f06320f 100644 --- a/share/functions/eval.fish +++ b/share/functions/eval.fish @@ -3,7 +3,7 @@ function eval -S -d "Evaluate parameters as a command" # to preserve the status in case the block that is evaluated # does not modify the status itself. set -l status_copy $status - function -S restore_status + function -S __fish_restore_status return $status_copy end @@ -49,7 +49,7 @@ function eval -S -d "Evaluate parameters as a command" # what it reads from. So builtins are magic in that, in pipes, their stdin # is not fd 0. - restore_status + __fish_restore_status echo "begin; $argv "\n" ;end eval2_inner <&3 3<&-" | source 3<&0 set -l res $status |