summaryrefslogtreecommitdiff
path: root/rc.h
AgeCommit message (Collapse)Author
2018-04-28check access of external commands when completingToby Goodwin
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-03-19implement desugaring version (again, lost due to git problem)Toby Goodwin
2018-03-17Merge branch 'master' into ifnotToby 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-01Merge branch 'master' into ifnotToby Goodwin
2018-02-09wipToby Goodwin
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-26FormattingDrazen Borkovic
2017-08-26Add "continue" builtinDrazen Borkovic
2015-05-16various patches from Jakub WilkToby Goodwin
2015-05-16more tidying up of errorsToby Goodwin
2015-05-16snapshot from cvs: 2005-03-03Toby Goodwin
2015-05-16 Tidiness: minor improvements to input.c.tjg
2015-05-16no NDEBUG for snapshotstjg
2015-05-16remove redundant decl of doredirstjg
2015-05-16 Feature: make $version less magical, and exportable if it's changedtjg
from its default value. Same for $prompt.
2015-05-16 Feature: large file support.tjg
2015-05-16fix a few more warningstjg
2015-05-16include <assert.h>tjg
2015-05-16 Bug: it's no longer possible to use parentheses to sneak a word thattjg
needs quoting past the "quoting detector", so `fn x { echo $(x.y) }' now works both in the current rc and its descendants.
2015-05-16 Bug: it's no longer possible to use parentheses to sneak a word thattjg
needs quoting past the "quoting detector", so `fn x { echo $(x.y) }' now works both in the current rc and its descendants.
2015-05-16 Bug: the ^A bug is fixed.tjg
2015-05-16 Bug: you can't pass a short to a stdargs function!tjg
2015-05-16remove equals hacktjg
2015-05-16equals hacktjg
2015-05-16 Portability: need special runes for read() returning EIO under jobtjg
control systems.
2015-05-16pr_error now takes a line number offsettgoodwin
2015-05-16s/makenonblock/makeblocking/tgoodwin
2015-05-16add makenonblock()tgoodwin
2015-05-16add prototype for add_history when doing editlinetgoodwin
2015-05-16move some stuff to proto.htgoodwin
declare readline stuff for ourselves
2015-05-16remove some genuinely unused argumentstgoodwin
2015-05-16lots of changes, mostly to integrate better with readlinetgoodwin
2015-05-16include declaration for malloc() if we didn't have stdlib.htgoodwin
is this right thing to do?
2015-05-16use POSIX wait() macrostgoodwin
2015-05-16stdlib.h is already covered by STDC_HEADERStgoodwin
2015-05-16incorporate Tom Culliton's patches for readlinetgoodwin
2015-05-16reinstate rc_wait (but right this time)tgoodwin
2015-05-16move rc_readline to rdwr.ctgoodwin
2015-05-16first stab at getting execve.c only compiled when neededtgoodwin
2015-05-16split some restartable syscall stuff outtgoodwin
don't declare slowbuf unless it's needed
2015-05-16fix prompting for readlinetgoodwin
2015-05-16fix const / prototype warningstgoodwin
2015-05-16use sigsetjmp, etc.tgoodwin
2015-05-16autoconftim
2015-05-16Initial revisiontim