aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
Commit message (Collapse)AuthorAge
...
* Fix $SHLVLGravatar Kevin Ballard2014-08-29
| | | | | Due to being read-only, SHLVL wasn't being incremented properly for recursive invocations of fish.
* Merge pull request #1630 from kballard/expand_variables_in_quoted_stringsGravatar ridiculousfish2014-08-23
|\ | | | | Fix various expansions issues with variables
* \ Merge branch 'make_type_better' of github.com:kballard/fish-shell into ↵Gravatar ridiculousfish2014-08-21
|\ \ | | | | | | | | | kballard-make_type_better
| | * Fix error span for invalid slice indexesGravatar Kevin Ballard2014-08-21
| | | | | | | | | | | | | | | | | | | | | | | | The span now properly points at the token that was invalid, rather than the start of the slice. Also fix the span for `()[1]` and `()[d]`, which were previously reporting no source location at all.
| | * Parse slices even for empty variablesGravatar Kevin Ballard2014-08-20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When a variable is parsed as being empty, parse out the slice and validate the indexes anyway, behaving for slicing purposes as if the variable had a single empty value. Besides providing errors when expected, this also fixes the following: set -l foo echo "$foo[1]" This used to print "[1]", now it properly prints nothing.
| | * 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
* | Improve history robustness against corrupt filesGravatar ridiculousfish2014-07-29
| | | | | | | | Fixes #1581
| * 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.
| * Update tests for new `type` behaviorGravatar Kevin Ballard2014-07-13
|/ | | | | | One of the tests was using `>/dev/null` to suppress the `type` output. That needs to be `^/dev/null` now, but instead just go ahead and use the new `-q` flag.
* Teach while loops to not hang forever with no-executeGravatar ridiculousfish2014-07-11
| | | | Fixes #1543
* Switch variable name in tests from foo to something less likely to beGravatar ridiculousfish2014-07-06
| | | | used accidentally
* Add test for issue 1526Gravatar ridiculousfish2014-07-06
|
* 'echo -' should output a dash instead of treating it as optionsGravatar ridiculousfish2014-05-16
| | | | Fixes #1459
* Move the empty function test to tests.Gravatar Konrad Borowski2014-05-06
|
* Add test for empty function name.Gravatar Konrad Borowski2014-05-06
|
* Set the job property of block_t before expanding arguments associatedGravatar ridiculousfish2014-04-02
| | | | with the job, fixing psub. Fixes #1394
* Implement status -n (line number) with new parserGravatar ridiculousfish2014-03-01
|
* Expand the variable name as an ordinary parameter in for loops. AddedGravatar ridiculousfish2014-02-21
| | | | test for it too.
* Tests and fix to allow return to work correctly within if statements. Closes ↵Gravatar ridiculousfish2014-02-12
| | | | #1297.
* Make if statements always return success at the end, matching otherGravatar ridiculousfish2014-02-07
| | | | shells. Fixes #1061.
* Make the test harness output file diffs on failureGravatar ridiculousfish2014-02-04
|
* Makefile/tests: use return values to communicate errorsGravatar David Adam2014-01-15
|
* Added tests for piping an fd other than stdoutGravatar ridiculousfish2014-01-13
|
* Support for implicit cd, no-exec, and the exit builtin. All tests nowGravatar ridiculousfish2013-12-29
| | | | pass (!). Error reporting still unsteady.
* Support for break/continue with new parser executionGravatar ridiculousfish2013-12-28
|
* Finish rewriting detect_errors to use new parser. All tests now pass (!)Gravatar ridiculousfish2013-12-12
|
* Initial work towards various IO cleanups with an eye to fixing ↵Gravatar ridiculousfish2013-08-19
| | | | https://github.com/fish-shell/fish-shell/issues/110
* Cleanup of code that decides whether or not to fork. Fix for issue where ↵Gravatar ridiculousfish2013-06-16
| | | | stderr may be output twice.
* Try to fix printf tests on LinuxGravatar ridiculousfish2013-04-03
|
* Enabled test cases for unicode characters in printf builtinGravatar Siteshwar Vashisht2013-03-29
|
* 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
* Fix printf output to store \r instead of \nGravatar ridiculousfish2013-03-24
| | | | Is git breaking line endings?
* Implement actual error handling for builtin_printf. Fix the tests.Gravatar ridiculousfish2013-03-24
|
* Added test cases for printf builtinGravatar Siteshwar Vashisht2013-03-03
|
* Make subcommands modify $status, and make builtin_set not modify status ↵Gravatar ridiculousfish2013-01-31
| | | | | | | unless it fails https://github.com/fish-shell/fish-shell/issues/547 https://github.com/fish-shell/fish-shell/issues/214
* fix a memory leak in profiling, add a profiling testGravatar Jan Kanis2013-01-14
|
* Added a seq function that defers to the seq command if presentGravatar ridiculousfish2013-01-12
| | | | https://github.com/fish-shell/fish-shell/issues/137
* really fix bug in export status of universal vars; add tests for that bugGravatar Jan Kanis2013-01-02
|
* include fixes and suggestions from code reviewGravatar Jan Kanis2012-12-22
|
* Allow 'emit' to accept event argumentsGravatar Jan Kanis2012-12-20
|
* fixed #449, added testGravatar Jan Kanis2012-12-20
|
* Further fixes to newline escapingGravatar ridiculousfish2012-11-23
| | | | Addresses issue described in https://github.com/fish-shell/fish-shell/issues/347#issuecomment-10650443
* Implement new newline-escaping behavior. Backslashes at the end of lines now ↵Gravatar ridiculousfish2012-11-22
| | | | | | | essentially delete the newline, within normal text or double quotes. Backslashes are retained within single quotes. Fixes https://github.com/fish-shell/fish-shell/issues/347 Fixes https://github.com/fish-shell/fish-shell/issues/52
* Fixed recursive brace expansionGravatar ridiculousfish2012-11-20
| | | | https://github.com/fish-shell/fish-shell/issues/399
* Fix bug where 'else if' does not support functions and redirectionsGravatar ridiculousfish2012-11-04
| | | | https://github.com/fish-shell/fish-shell/issues/359
* Make the \c special character in echo suppress the newline tooGravatar ridiculousfish2012-10-17
|
* Implement -e option to echo (to interpret special characters), and -E to not ↵Gravatar ridiculousfish2012-10-17
| | | | | | interpret them https://github.com/fish-shell/fish-shell/issues/337
* Fix for issue where else if would fail to pass arguments to commands. Also ↵Gravatar ridiculousfish2012-10-17
| | | | | | | implements short-circuiting for and/or so that non-existent commands don't produce error messages. Fixes https://github.com/fish-shell/fish-shell/issues/345 Fixes https://github.com/fish-shell/fish-shell/issues/349
* Changed "elseif" to "else if"Gravatar ridiculousfish2012-09-03
|
* First stab at elseif implementationGravatar ridiculousfish2012-09-01
|