aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/top.out
Commit message (Collapse)AuthorAge
* Don't leave is_block in bad state after bad redirectionGravatar Kevin Ballard2014-09-30
| | | | Fixes #1728.
* Merge pull request #1630 from kballard/expand_variables_in_quoted_stringsGravatar ridiculousfish2014-08-23
|\ | | | | Fix various expansions issues with variables
| * Fix double expansions (`$$foo`)Gravatar Kevin Ballard2014-08-20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Double expansions of variables had the following issues: * `"$$foo"` threw an error no matter what the value of `$foo` was. * `set -l foo ''; echo $$foo` threw an error because of the expansion of `$foo` to `''`. With this change, double expansion always works properly. When double-expanding a multi-valued variable, in a double-quoted string the first word of the inner expansion is used for the outer expansion, and outside of a quoted string every word is used for the double-expansion in each of the arguments. > set -l foo bar baz > set -l bar one two > set -l baz three four > echo "$$foo" one two baz > echo $$foo one two three four
* | read: Support arrays, character splittingGravatar Kevin Ballard2014-07-14
|/ | | | | | | | | | Enhance the `read` builtin to support creating an array with the --array flag. With --array, only a single variable name is allowed and the entire input is tokenized and placed into that variable as an array. Also add custom behavior if IFS is empty or unset. In that event, split the input on every character, instead of the previous behavior of doing no splitting at all.
* Teach fish how to push and pop blocks even in the face of no_exec. All tests ↵Gravatar ridiculousfish2013-03-25
| | | | | | finally pass. https://github.com/fish-shell/fish-shell/issues/624
* Add variable expand rangesGravatar maxfl2012-07-08
| | | | | | echo $PATH[-1..1] #now works Add tests for ranges
* Add a test case for switch error code (issue #161)Gravatar Kevin Ballard2012-06-24
|
* don't parse the options that should be passed to fish scriptsGravatar Grissiom2010-10-03
This commit makes fish_parse_opt stop at first non-option argument, which expected as fish script name and pass the remaining argument to that script. I also updated the test cases.