fish-shell/tests
Kevin Ballard 3981b644d6 Fix double expansions ($$foo)
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
2014-08-20 21:45:07 -07:00
..
expansion.err Fix double expansions ($$foo) 2014-08-20 21:45:07 -07:00
expansion.in Fix double expansions ($$foo) 2014-08-20 21:45:07 -07:00
expansion.out Fix double expansions ($$foo) 2014-08-20 21:45:07 -07:00
expansion.status Fix double expansions ($$foo) 2014-08-20 21:45:07 -07:00
gen_output.fish remove trialing spaces #2 2010-09-18 10:18:26 +08:00
history_sample_bash Support for importing fish 1.x's history and format, and also bash 2012-06-15 16:24:05 -07:00
history_sample_corrupt1 Improve history robustness against corrupt files 2014-07-29 14:42:03 -07:00
history_sample_fish_1_x Support for importing fish 1.x's history and format, and also bash 2012-06-15 16:24:05 -07:00
history_sample_fish_2_0 Support for importing fish 1.x's history and format, and also bash 2012-06-15 16:24:05 -07:00
printf.err Added test cases for printf builtin 2013-03-03 00:45:34 +05:30
printf.in Try to fix printf tests on Linux 2013-04-03 18:04:17 -07:00
printf.out Enabled test cases for unicode characters in printf builtin 2013-03-29 12:26:15 +05:30
printf.status Added test cases for printf builtin 2013-03-03 00:45:34 +05:30
test.fish Make the test harness output file diffs on failure 2014-02-04 11:28:29 -08:00
test1.err Add subdirectories 2005-09-20 23:31:55 +10:00
test1.in Teach while loops to not hang forever with no-execute 2014-07-11 11:28:10 -07:00
test1.out Teach while loops to not hang forever with no-execute 2014-07-11 11:28:10 -07:00
test1.status Add subdirectories 2005-09-20 23:31:55 +10:00
test2.err Add subdirectories 2005-09-20 23:31:55 +10:00
test2.in remove trialing spaces #2 2010-09-18 10:18:26 +08:00
test2.out Add subdirectories 2005-09-20 23:31:55 +10:00
test2.status Add subdirectories 2005-09-20 23:31:55 +10:00
test3.err Add subdirectories 2005-09-20 23:31:55 +10:00
test3.in Switch variable name in tests from foo to something less likely to be 2014-07-06 20:41:21 -07:00
test3.out Add test for issue 1526 2014-07-06 18:12:18 -07:00
test3.status Add subdirectories 2005-09-20 23:31:55 +10:00
test4.err Add subdirectories 2005-09-20 23:31:55 +10:00
test4.in Make subcommands modify $status, and make builtin_set not modify status unless it fails 2013-01-31 15:57:08 -08:00
test4.out Make subcommands modify $status, and make builtin_set not modify status unless it fails 2013-01-31 15:57:08 -08:00
test4.status Add subdirectories 2005-09-20 23:31:55 +10:00
test5.err Add subdirectories 2005-09-20 23:31:55 +10:00
test5.in Add subdirectories 2005-09-20 23:31:55 +10:00
test5.out Add subdirectories 2005-09-20 23:31:55 +10:00
test5.status Add subdirectories 2005-09-20 23:31:55 +10:00
test6.err Fix for https://github.com/ridiculousfish/fishfish/issues/2 2012-05-11 18:59:38 -07:00
test6.in Fix for https://github.com/ridiculousfish/fishfish/issues/2 2012-05-11 18:59:38 -07:00
test6.out Fix for https://github.com/ridiculousfish/fishfish/issues/2 2012-05-11 18:59:38 -07:00
test6.status Fix for https://github.com/ridiculousfish/fishfish/issues/2 2012-05-11 18:59:38 -07:00
test7.err Add a test case for switch error code (issue #161) 2012-06-24 13:43:44 -07:00
test7.in Finish rewriting detect_errors to use new parser. All tests now pass (!) 2013-12-12 18:18:07 -08:00
test7.out Finish rewriting detect_errors to use new parser. All tests now pass (!) 2013-12-12 18:18:07 -08:00
test7.status Add a test case for switch error code (issue #161) 2012-06-24 13:43:44 -07:00
test8.err Add variable expand ranges 2012-07-08 09:19:11 +08:00
test8.in Make if statements always return success at the end, matching other 2014-02-07 17:57:53 -08:00
test8.out Make if statements always return success at the end, matching other 2014-02-07 17:57:53 -08:00
test8.status Add variable expand ranges 2012-07-08 09:19:11 +08:00
test9.err include fixes and suggestions from code review 2012-12-22 18:38:28 +01:00
test9.in Set the job property of block_t before expanding arguments associated 2014-04-02 00:32:08 -07:00
test9.out Set the job property of block_t before expanding arguments associated 2014-04-02 00:32:08 -07:00
test9.status include fixes and suggestions from code review 2012-12-22 18:38:28 +01:00
top.err Teach fish how to push and pop blocks even in the face of no_exec. All tests finally pass. 2013-03-25 16:06:12 -07:00
top.out Fix double expansions ($$foo) 2014-08-20 21:45:07 -07:00
top.status don't parse the options that should be passed to fish scripts 2010-10-03 11:46:26 +08:00