On Thu, 5 Sep 2013, Chris Wright wrote: > I'm trying to get both the output on stderr and the return code of a > command. I can put: > > set foo (/bin/false) > > This sets foo to the output of /bin/false (the empty string) and $status is > overwritten by the status code of set. > > How do I get both at once?
Are you using fish 2.0.0? This works for me: ~> set foo (/bin/true); echo $status 0 ~> set foo (/bin/false); echo $status 1 This was added in ad8d68dd43, which is in 2.0.0. David Adam fish committer zanc...@ucc.gu.uwa.edu.au ------------------------------------------------------------------------------ Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! Discover the easy way to master current and previous Microsoft technologies and advance your career. Get an incredible 1,500+ hours of step-by-step tutorial videos with LearnDevNow. Subscribe today and save! http://pubads.g.doubleclick.net/gampad/clk?id=58041391&iu=/4140/ostg.clktrk _______________________________________________ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users