diff options
author | Konrad Borowski <glitchmr@myopera.com> | 2013-08-18 10:57:33 +0200 |
---|---|---|
committer | Konrad Borowski <glitchmr@myopera.com> | 2013-08-18 10:57:33 +0200 |
commit | 2979d3bf169f51fb2ba218897994745754f830f9 (patch) | |
tree | 39c2ed4740520c7ebb46d9718b4581e74d4383d3 /share/functions/eval.fish | |
parent | 88efc737975efcc772fdecfd70191c1c0273c55b (diff) |
Fix #684 by putting newline after $argv
It's rather hacky, but it sort of works. (but then, this makes fish
compare to PHP (but PHP doesn't put that newline), so perhaps I
shouldn't do that - http://git.io/GFurbg)
Diffstat (limited to 'share/functions/eval.fish')
-rw-r--r-- | share/functions/eval.fish | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/share/functions/eval.fish b/share/functions/eval.fish index 52dee178..19f20731 100644 --- a/share/functions/eval.fish +++ b/share/functions/eval.fish @@ -1,4 +1,3 @@ - function eval -S -d "Evaluate parameters as a command" # If we are in an interactive shell, eval should enable full @@ -20,7 +19,7 @@ function eval -S -d "Evaluate parameters as a command" status --job-control full end - echo "begin; $argv ;end eval2_inner <&3 3<&-" | source 3<&0 + echo "begin; $argv "\n" ;end eval2_inner <&3 3<&-" | source 3<&0 set -l res $status status --job-control $mode |