summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2018-05-01implement quoting for command completionToby Goodwin
2018-05-01quoting functions mean filename completion mostly works for names containing "'"Toby Goodwin
2018-04-29minor cleanupsToby Goodwin
2018-04-28support completion through subdirs of pathToby Goodwin
2018-04-28check access of external commands when completingToby Goodwin
2018-04-28eliminate goto... clearer?Toby Goodwin
2018-04-26Always insert single match of explicit complete functionBert Münnich
If an explicit complete function has only one match but is used directly after the default tab completion, than the single match is shown instead of inserted. The solution is resetting the 'rl_last_func' variable if it is set to 'rl_complete' when using an explicit complete function.
2018-04-26Custom readline commands for explicit completionsBert Münnich
New commands: - rc-complete-command, per default bound to "M-!" - rc-complete-filename, "M-/" - rc-complete-variable, "M-$" These commands are useful, if one wants a specific type of completion which is not performed by the context-senstive default one, e.g. filename completion at the beginning of the line or command completion for the second word (after sudo). The readline code now also sets the application name to "rc", making it possible to specify different bindings for these commands in ~/.inputrc: $if rc "\C-x\C-[": rc-complete-command "\C-[\C-x": rc-complete-filename "\C-x\C-v": rc-complete-variable $endif
2018-04-26Completion of command names and variablesBert Münnich
New completion entry functions for readline specific code: - compl_var for variables - compl_fn for functions - compl_builtin for builtins - compl_extcmd for external commands in path - compl_command, which combines the last three The first three are simple wrappers for compl_name, which iterates over a typical rc table (an array of structs) yielding the name fields. The appropriate completion entry function is chosen based on the character/token that preceeds the word to complete: '$' for variable, beginning of line or one of [`@|&(){;] for command. Otherwise the shell falls back to readline's default completion, which it also does, if the chosen completion entry function finds no match.
2018-04-25bring ChangeLog up to dateToby Goodwin
2018-04-20new mkinstalldirs for some reasonToby Goodwin
2018-04-20replace space used to terminate heredocToby Goodwin
2018-03-26Merge branch 'master' into ifnotToby Goodwin
2018-03-26whitespace cleanupsToby Goodwin
2018-03-20whitespace cleanupToby Goodwin
2018-03-19Merge branch 'master' into ifnotToby Goodwin
2018-03-19implement $nl and $tab, issue #43Toby Goodwin
2018-03-19implement desugaring version (again, lost due to git problem)Toby Goodwin
2018-03-17Merge branch 'master' into ifnotToby Goodwin
2018-03-17fix bad merge fixupToby Goodwin
2018-03-17Merge branch 'continue'Toby Goodwin
2018-03-17tidy up, test cases, document flagToby Goodwin
2018-03-16flag largely working, flag n + is a bit oddToby Goodwin
2018-03-16starting to workToby Goodwin
2018-03-05Merge branch 'master' into ifnotToby Goodwin
2018-03-05add to ChangeLogToby Goodwin
2018-03-05implement walk half of if not, plus testsToby Goodwin
2018-03-02Unify bodies of if and if-else statementsBert Münnich
Fixes issue #31 of rakitzis/rc.
2018-03-02nBody second child can be nullToby Goodwin
2018-03-01Merge branch 'master' into ifnotToby Goodwin
2018-02-17remove all references to SIGCLDToby Goodwin
2018-02-09remove config.h-dist; add thanks to Bert and LeahToby Goodwin
2018-02-09wipToby Goodwin
2017-11-17Merge pull request #41 from muennich/issue40Toby Goodwin
Fix issue #40
2017-10-28Add test for issue #40, exit status of -e with failed backquote or pipelineBert Münnich
2017-10-27Fix exit value for -e with failed backquote or pipelineBert Münnich
This fixes rakitzis/rc issue #40. Both cases suffered from a misconception of statprint() in which the necessary check for -e happens. The checked status value gets passed to statprint() as an argument but the corresponding value passed to rc_exit() in case the status is non-zero comes from getstatus(), which requires that the checked status is written to statuses[] first. For pipelines this happened in the wrong order and for backquotes the status value was not put into statuses[] at all. Making statprint() a static helper function prevents this mistake by only leaving the setstatus family of functions to handle status codes.
2017-08-28remove blank line at end of fileToby Goodwin
2017-08-27Change one continue-testing loop from for to whileDrazen Borkovic
2017-08-26FormattingDrazen Borkovic
2017-08-26Remove space at end of lineDrazen Borkovic
2017-08-26Add continue to man pageDrazen Borkovic
2017-08-26Add "continue" builtinDrazen Borkovic
2017-08-25Merge pull request #21 from muennich/break-varstackToby Goodwin
Fix breaking out of loops through local variable blocks
2017-08-25use "/bin/pwd -P" - github #36Toby Goodwin
2017-08-25add CasperToby Goodwin
2017-06-23fix for github #32 readline loses track of term sizeToby Goodwin
2017-06-23fix prefix redir precedence bug, github #33Toby Goodwin
2017-06-23add failing test for github #33 counter intuitive redirection parseToby Goodwin
2017-06-23add parse tree dumper with --enable-developToby Goodwin
2017-06-23reinstate yacc to the build processToby Goodwin