aboutsummaryrefslogtreecommitdiffhomepage
path: root/expand.cpp
Commit message (Collapse)AuthorAge
* Fixed various Undefined Behavior occurrences.Gravatar Daniel J. Hofmann2014-03-07
| | | | | | | | | | | | | | | | | Conditionally uninitialized: - builtin_commandline.cpp:577 - expand.cpp:869 - parse_util.cpp:1036 Initialization of POD structs: - event.cpp:61 - autoload.cpp:22 References used with va_start: - common.cpp:608:18 Found with clang-3.4's awesome -Wconditional-uninitialized, -Wmissing-field-initializers and -Wvarargs.
* Support for error detection in arguments in new parser. Restores errorGravatar ridiculousfish2014-03-04
| | | | reporting for bad arguments (e.g. with bad variable names)
* Revert "Merge pull request #1317 from pullreq/cpp"Gravatar ridiculousfish2014-02-28
| | | | | | | This reverts commit 74135c0600d5dcc40d396d0e7293c17b8d4bdaa7, reversing changes made to 6d749789ce240a3e6f1447777db63fd8e7525560. See discussion in #1317
* Fixes .c -> .cpp in comments. For doxygen.Gravatar Geoff Nixon2014-02-27
|
* Update style and formatting to conform to fish style guide.Gravatar ridiculousfish2014-01-15
|
* Miscellaneous optimizations to reduce string copyingGravatar ridiculousfish2014-01-07
|
* Bringup of function definitions, switch statements with new parserGravatar ridiculousfish2013-12-27
|
* Various cleanup and tweaking of backtrace messagesGravatar ridiculousfish2013-12-16
|
* Allow autosuggestions to do job expansion. FixesGravatar ridiculousfish2013-11-29
| | | | https://github.com/fish-shell/fish-shell/issues/1152
* Large cleanup and refactoring of unescape() function.Gravatar ridiculousfish2013-11-24
|
* Fix formattingGravatar ridiculousfish2013-10-26
|
* Improve dangerous/undefined PID expansion behaviorGravatar Ryan Hileman2013-09-22
| | | | | | | | | | | | | | | | | | | | | | | | 1. Use Bash-like expansion for empty searches (when you just use a '%' by itself). '%' will now *only* match the last valid backgrounded process. If there are no such processes, an expansion error will be generated. '%' by itself would previously match either *all* backgrounded processes, or failing that, all processes owned by your user. If you ever tried to run `kill -9 %`, it would either kill all backgrounded processes or *all* of your processes. I'm not sure why anyone would ever want that to be a single keystroke away. You could almost typo it. As a result, `fg %`, `bg %`, `kill %`, etc will all operate on the last process touched by job control. 2. Don't run 'by-name' matches when the search term is numeric. This prevents you from running a command like `kill %1` and accidentally killing a process named something like "1Command". Overloaded behavior can be dangerous, and we probably shouldn't play fast and loose with expansion characters that generate process IDs.
* Don't do completions or autosuggestions for commands with wildcards.Gravatar ridiculousfish2013-09-11
| | | | Fixes https://github.com/fish-shell/fish-shell/issues/785
* Adjust prefix completions to sort alphabetically instead of by length.Gravatar ridiculousfish2013-08-31
| | | | | Other completions are still sorted by length. https://github.com/fish-shell/fish-shell/issues/923
* Initial abbreviation work. Tests currently fail.Gravatar ridiculousfish2013-07-19
|
* 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
* Conditionally include sys/sysctl.hGravatar Ian Ray2013-06-01
|
* Formatting and style updatesGravatar ridiculousfish2013-05-05
|
* Fix for issue where tab completing an empty string would produce no resultsGravatar ridiculousfish2013-04-21
|
* Teach case-insensitive completions about tildes. Fixes ↵Gravatar ridiculousfish2013-04-07
| | | | https://github.com/fish-shell/fish-shell/issues/647
* Add some headers to fix the build on OpenBSDGravatar ridiculousfish2013-03-11
| | | | https://github.com/fish-shell/fish-shell/issues/616
* 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 spelling: s/circut/circuit/gGravatar Cheer Xiao2013-01-24
|
* Fix two clang warningsGravatar Cheer Xiao2013-01-17
|
* 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
* 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
* Attempt to fix process expansion on LinuxGravatar ridiculousfish2012-12-18
| | | | Hopefully addresses https://github.com/fish-shell/fish-shell/issues/455
* Fixed compilation error in expand.cppGravatar situ2012-11-22
| | | | Fixed https://github.com/fish-shell/fish-shell/issues/401
* Fixed recursive brace expansionGravatar ridiculousfish2012-11-20
| | | | https://github.com/fish-shell/fish-shell/issues/399
* 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 underlining was failing for paths prefixed with ~Gravatar ridiculousfish2012-08-23
| | | | Fixes https://github.com/fish-shell/fish-shell/issues/292
* Added some limited support for autosuggesting processesGravatar ridiculousfish2012-08-07
|
* Fixed a bunch of clang analyzer warningsGravatar ridiculousfish2012-08-05
| | | | Simplified some memory allocations by migrating to std::string
* More warning fixes and switching from int to long or size_tGravatar ridiculousfish2012-08-04
|
* Additional warning cleanup and switching from int to size_t where appropriateGravatar ridiculousfish2012-08-04
|
* Fixed two small spelling mistakesGravatar Colin Woodbury2012-07-24
| | | | | | - Saw these during normal usage today. "parens" or "parenthesis" was spelled as "parans". Fixed two instances of this to "parenthesis".
* Renamed env_vars to env_vars_snapshot_tGravatar ridiculousfish2012-07-20
| | | | Cleanup of non-wcstring version of path_get_path
* Merge branch 'index_range'Gravatar ridiculousfish2012-07-19
|\
* | Various changes to reduce fish's compiled code sizeGravatar ridiculousfish2012-07-17
| | | | | | | | OS X release build executable size dropped from 672k to 511k
* | Fix for process completion on LinuxGravatar ridiculousfish2012-07-16
| |
* | Implemented process expansion on OS XGravatar ridiculousfish2012-07-16
| | | | | | | | | | Also fixed issue where process expansion would always fail for processes with spaces Fixes https://github.com/fish-shell/fish-shell/issues/56
* | Improve error message for $?Gravatar ridiculousfish2012-07-08
| |
* | Fix for https://github.com/fish-shell/fish-shell/issues/50Gravatar ridiculousfish2012-07-08
| | | | | | | | Unescape characters before calling parser.error
| * restore tabs instead of spacesGravatar maxfl2012-07-08
| |
| * Fix case when first index is command substitutionGravatar maxfl2012-07-08
| |
| * Fix case when second limit is a variable:Gravatar maxfl2012-07-08
| | | | | | | | echo $PATH[1..$n]
| * Add variable expand rangesGravatar maxfl2012-07-08
| | | | | | | | | | | | echo $PATH[-1..1] #now works Add tests for ranges