Kurtis Rader
11a60c8374
reformat all fish scripts
...
I hate doing this but I am tired of touching a fish script as part of
some change and having `make style` radically change it. Which makes
editing fish scripts more painful than it needs to be. It is time to do
a wholesale reformatting of these scripts to conform to the documented
style as implemented by the `fish_indent` program.
2016-11-27 21:27:22 -08:00
ridiculousfish
75a76c596c
Clean up recent fix for #1892
...
Restore 906d235
and simplify how __fish_restore_status works
2015-01-17 15:36:30 -08:00
Konrad Borowski
e529b78365
Don't define unnamespaced internal function.
2015-01-17 11:50:23 +01:00
Jorge Bucaran
2018b9b217
Fix: eval should preserve previous $status if the evaluated block does not change it
...
Empty functions may return 1 when eval is used due to the $status not being correctly preserved inside the function definition.
2015-01-17 11:44:55 +01:00
ridiculousfish
906d235601
Add more expository comments to eval, and remove a useless parameter
2015-01-07 14:56:41 -08:00
Kevin Ballard
9fc8729b96
Support -h/--help with eval
...
`eval` prints help if given a single argument of -h or --help.
Fixes #1379 .
2014-10-09 18:07:57 -07:00
ridiculousfish
e849beabba
Initial work towards various IO cleanups with an eye to fixing https://github.com/fish-shell/fish-shell/issues/110
2013-08-19 18:06:24 -07:00
Konrad Borowski
2979d3bf16
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 )
2013-08-18 10:57:33 +02:00
ridiculousfish
77b13d02f0
Fix "." function to not shadow scopes, so the tests pass again. Remove eval's use of "." function.
2013-08-17 17:00:15 -07:00
Cheer Xiao
887474d607
Use double quotes in eval.fish
2013-01-20 15:55:10 +01:00
Dylan Smith
6b243fbcd3
eval: (eval false) should return an error status
...
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.
Reviewed-by: Grissiom <chaos.proton@gmail.com>
2010-11-22 19:36:42 +08:00
liljencrantz
9299515f3e
'Misfeature' fix for eval function - make it force job control when in interactive mode, in order to make commands that expect to control the terminal happy
...
darcs-hash:20071006102326-75c98-b168d709d54edb21c478ec2d69420468a2c08da1.gz
2007-10-06 20:23:26 +10:00
liljencrantz
188f0454b7
Use IO redirection to make the eval function actually have a working stdin
...
darcs-hash:20071005150245-75c98-d6a6d2f6ec1690079ee30f0e9cccf61e30e14c08.gz
2007-10-06 01:02:45 +10:00
liljencrantz
e1afe17671
Fix bug in eval function, forgot to turn off new scope creation.
...
darcs-hash:20070922193055-75c98-ea4a37e3ba1bce4da7d2b65ef464740cc67822e2.gz
2007-09-23 05:30:55 +10:00
axel
2a3b01a7a0
Avoid using -n switch to ecco
...
darcs-hash:20070908191554-ac50b-22f205c0da9dde0cbe19154ee6f4f64fed49241a.gz
2007-09-09 05:15:54 +10:00
axel
2c02b59703
Replace the eval builtin with a function
...
darcs-hash:20070422221806-ac50b-28cffc6c3063c14cd8ab30f999e3530314c78af2.gz
2007-04-23 08:18:06 +10:00