Previously (eval false) would return a status of 0.
This also caused (isatty < /dev/null) to return 0 since it uses eval,
and (ls | cat) to output using the classify indicator style since it
uses isatty. This is how I found the bug.
---
share/functions/eval.fish | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/share/functions/eval.fish b/share/functions/eval.fish
index 34c4e3a..aec8de2 100644
--- a/share/functions/eval.fish
+++ b/share/functions/eval.fish
@@ -21,6 +21,8 @@ function eval -S -d "Evaluate parameters as a command"
end
echo begin\; $argv \;end eval2_inner \<\&3 3\<\&- | . 3<&0
+ set -l res $status
status --job-control $mode
+ return $res
end
------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3.
Spend less time writing and rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
_______________________________________________
Fish-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fish-users