aboutsummaryrefslogtreecommitdiffhomepage
path: root/parser.cpp
Commit message (Collapse)AuthorAge
* Better error messages for `EDITOR=vim git...` type commands.Gravatar ridiculousfish2013-09-30
| | | | https://github.com/fish-shell/fish-shell/issues/809
* Make tok_last_type return an enum token_type instead of intGravatar ridiculousfish2013-09-30
|
* Improve error messages for double square brackets -Gravatar ridiculousfish2013-09-11
| | | | https://github.com/fish-shell/fish-shell/issues/875
* Recommend eval when using variable as command.Gravatar Konrad Borowski2013-09-04
|
* Big fat refactoring of how redirections work. In fish 1.x and 2.0.0, the ↵Gravatar ridiculousfish2013-08-19
| | | | | | | | | | redirections for a process were flattened into a big list associated with the job, so there was no way to tell which redirections applied to each process. Each process therefore got all the redirections associated with the job. See https://github.com/fish-shell/fish-shell/issues/877 for how this could manifest. With this change, jobs only track their block-level redirections. Process level redirections are correctly associated with the process, and at exec time we stitch them together (block, pipe, and process redirects). This fixes the weird issues where redirects bleed across pipelines (like #877), and also allows us to play with the order in which redirections are applied, since the final list is constructed right before it's needed. This lets us put pipes after block level redirections but before process level redirections, so that a 2>&1-type redirection gets picked up after the pipe, i.e. it should fix https://github.com/fish-shell/fish-shell/issues/110 This is a significant change. The tests all pass. Cross your fingers.
* Initial work towards various IO cleanups with an eye to fixing ↵Gravatar ridiculousfish2013-08-19
| | | | https://github.com/fish-shell/fish-shell/issues/110
* Avoid standard command not found message when command-not-found is foundGravatar Konrad Borowski2013-07-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Squashed commit of the following: commit c208bc30b7747b3743212483b3dd7e3f90819f49 Merge: 97bea94 2633372 Author: Konrad Borowski <glitchmr@myopera.com> Date: Fri Jul 19 09:56:12 2013 +0200 Merge branch 'command-not-found' of git://github.com/GlitchMr/fish-shell into command-not-found commit 26333721b9048333d1e7932505c221a31fd0e624 Author: Konrad Borowski <glitchmr@myopera.com> Date: Fri Jul 19 09:55:13 2013 +0200 Fix command_not_found when not found commit db34460bb51a4b1c1c456c2e535ae8d913d1071e Author: Konrad Borowski <glitchmr@myopera.com> Date: Wed Jul 17 13:41:57 2013 +0200 Avoid showing standard command not found message when possible In bash, command-not-found handler causes the standard messages to not appear. Because of events model in fish, it isn't really an option, so I moved the standard command not found message to fish function. This way, the messages aren't repeated, and the standard command not found message appears only when handler couldn't be found.
* Make parse_util_locate_cmdsubst return the innermost command substitution ↵Gravatar ridiculousfish2013-07-17
| | | | | | instead of the outermost. Fixes https://github.com/fish-shell/fish-shell/issues/913
* Fix for quoted variables in command position error messageGravatar ridiculousfish2013-06-08
| | | | https://github.com/fish-shell/fish-shell/issues/775
* Additional changes related to https://github.com/fish-shell/fish-shell/pull/592Gravatar ridiculousfish2013-02-28
|
* add class scoped_push to automatically restore variable on function exitGravatar Cheer Xiao2013-02-26
|
* Add a null check to avoid passing null to io_chain_t::push_backGravatar ridiculousfish2013-02-21
| | | | https://github.com/fish-shell/fish-shell/issues/590
* 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
* Initial set of changes working to make fish robust against running out of ↵Gravatar ridiculousfish2013-01-30
| | | | file descriptors
* Indent switch + case properly. ↵Gravatar ridiculousfish2013-01-24
| | | | https://github.com/fish-shell/fish-shell/issues/530
* Remove some functions which were rendered trivial by xiaq's changes. Make ↵Gravatar ridiculousfish2013-01-19
| | | | io_file_t take its path directly. Make io_buffer_t no longer use a shared_ptr for its data.
* Split out io_file_tGravatar Cheer Xiao2013-01-17
|
* Split out io_fd_tGravatar Cheer Xiao2013-01-17
|
* Split out io_close_tGravatar Cheer Xiao2013-01-17
|
* parser.cpp: Put off initialization of new_io until mode is knownGravatar Cheer Xiao2013-01-17
|
* FormattingGravatar ridiculousfish2013-01-16
|
* fix a memory leak in profiling, add a profiling testGravatar Jan Kanis2013-01-14
|
* stop profile switch from crashing (issue #517); also make print_profile use ↵Gravatar Jan Kanis2013-01-14
| | | | a loop instead of recursion
* FormattingGravatar ridiculousfish2013-01-12
|
* Don't call expand_home_directory from within parser_t::test - it may hangGravatar ridiculousfish2013-01-12
| | | | https://github.com/fish-shell/fish-shell/issues/512
* Revert "Revert shared_ptr<io_data_t> changes until kinks are ironed out"Gravatar Cheer Xiao2013-01-11
| | | | This reverts commit 77f1b1f0fe27778750bb9b9aa53f6bc42d5e5843.
* Hack around xdm's dumb assumption that the login shell is POSIX compliant so ↵Gravatar ridiculousfish2013-01-04
| | | | | | | we no longer kill OpenSUSE https://github.com/fish-shell/fish-shell/issues/367 Also fix some formatting
* Revert shared_ptr<io_data_t> changes until kinks are ironed outGravatar ridiculousfish2013-01-04
| | | | | | | | | | | https://github.com/fish-shell/fish-shell/pull/487 Revert "Merge branch 'oo-io' of git://github.com/xiaq/fish-shell into xiaq-oo-io" This reverts commit f3c8f535a48d5fdd518bd60879ade948bc8be7e6, reversing changes made to b02f6cf3bc4343cf3e068dee3cb46de7139a5a27. Also reverts ac023f7588e562a03fdea7fd2feda487f18827c7 and a79d3c680c9548566309121630dadc94e48934c4
* Use shared_ptr to manage io_data_t*.Gravatar Cheer Xiao2012-12-31
|
* Make event_block_t.event not a referenceGravatar ridiculousfish2012-12-22
| | | | Stylistic tweaks
* Merge branch 'event-bug-test' of git://github.com/JanKanis/fish-shell into ↵Gravatar ridiculousfish2012-12-22
|\ | | | | | | JanKanis-event-bug-test
| * include fixes and suggestions from code reviewGravatar Jan Kanis2012-12-22
| |
* | Changes to work recognition per ↵Gravatar ridiculousfish2012-12-20
| | | | | | | | | | | | | | https://github.com/fish-shell/fish-shell/issues/384 Word movement should be very similar to fish 1.x backward-kill-word remains more liberal, but now stops at any of {,'"=}
| * reference'ize event.cpp/hGravatar Jan Kanis2012-12-20
| |
| * Allow 'emit' to accept event argumentsGravatar Jan Kanis2012-12-20
| |
* | Random fixes to comments.Gravatar Cheer Xiao2012-12-16
|/
* Remove tok_destroyGravatar ridiculousfish2012-11-21
|
* Work towards refactoring tokenizer to be a real objectGravatar ridiculousfish2012-11-21
|
* Fix indentation of switch statementsGravatar ridiculousfish2012-11-19
|
* Apply new indentation, brace, and whitespace styleGravatar ridiculousfish2012-11-18
|
* Remove trailing whitespaces and change tabs to spacesGravatar Łukasz Niemier2012-11-18
|
* Fix bug where 'else if' does not support functions and redirectionsGravatar ridiculousfish2012-11-04
| | | | https://github.com/fish-shell/fish-shell/issues/359
* 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
|
* Clean up some warnings and some unused if-related codeGravatar ridiculousfish2012-09-01
|
* Improve documentation and error reporting for elseif.Gravatar ridiculousfish2012-09-01
|
* First stab at elseif implementationGravatar ridiculousfish2012-09-01
|
* Migrated function_data_t out of base block classGravatar ridiculousfish2012-08-26
| | | | Removed an auto_ptr (yay)
* Made type property of block_t constant and privateGravatar ridiculousfish2012-08-26
| | | | Further work towards cleaning up block_t hierarchy
* First stab at getting rid of the ugly state1, state2 properties of block_tGravatar ridiculousfish2012-08-26
|