| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2018-03-19 | implement desugaring version (again, lost due to git problem) | Toby Goodwin | |
| 2018-03-17 | Merge branch 'master' into ifnot | Toby Goodwin | |
| 2018-03-17 | fix bad merge fixup | Toby Goodwin | |
| 2018-03-17 | Merge branch 'continue' | Toby Goodwin | |
| 2018-03-17 | tidy up, test cases, document flag | Toby Goodwin | |
| 2018-03-16 | flag largely working, flag n + is a bit odd | Toby Goodwin | |
| 2018-03-16 | starting to work | Toby Goodwin | |
| 2018-03-05 | Merge branch 'master' into ifnot | Toby Goodwin | |
| 2018-03-05 | add to ChangeLog | Toby Goodwin | |
| 2018-03-05 | implement walk half of if not, plus tests | Toby Goodwin | |
| 2018-03-02 | Unify bodies of if and if-else statements | Bert Münnich | |
| Fixes issue #31 of rakitzis/rc. | |||
| 2018-03-02 | nBody second child can be null | Toby Goodwin | |
| 2018-03-01 | Merge branch 'master' into ifnot | Toby Goodwin | |
| 2018-02-17 | remove all references to SIGCLD | Toby Goodwin | |
| 2018-02-09 | remove config.h-dist; add thanks to Bert and Leah | Toby Goodwin | |
| 2018-02-09 | wip | Toby Goodwin | |
| 2017-11-17 | Merge pull request #41 from muennich/issue40 | Toby Goodwin | |
| Fix issue #40 | |||
| 2017-10-28 | Add test for issue #40, exit status of -e with failed backquote or pipeline | Bert Münnich | |
| 2017-10-27 | Fix exit value for -e with failed backquote or pipeline | Bert 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-28 | remove blank line at end of file | Toby Goodwin | |
| 2017-08-27 | Change one continue-testing loop from for to while | Drazen Borkovic | |
| 2017-08-26 | Formatting | Drazen Borkovic | |
| 2017-08-26 | Remove space at end of line | Drazen Borkovic | |
| 2017-08-26 | Add continue to man page | Drazen Borkovic | |
| 2017-08-26 | Add "continue" builtin | Drazen Borkovic | |
| 2017-08-25 | Merge pull request #21 from muennich/break-varstack | Toby Goodwin | |
| Fix breaking out of loops through local variable blocks | |||
| 2017-08-25 | use "/bin/pwd -P" - github #36 | Toby Goodwin | |
| 2017-08-25 | add Casper | Toby Goodwin | |
| 2017-06-23 | fix for github #32 readline loses track of term size | Toby Goodwin | |
| 2017-06-23 | fix prefix redir precedence bug, github #33 | Toby Goodwin | |
| 2017-06-23 | add failing test for github #33 counter intuitive redirection parse | Toby Goodwin | |
| 2017-06-23 | add parse tree dumper with --enable-develop | Toby Goodwin | |
| 2017-06-23 | reinstate yacc to the build process | Toby Goodwin | |
| 2017-05-26 | INSTALL is an artifact, so add to .gitignore | Toby Goodwin | |
| 2017-05-26 | fix typos | Jakub Wilk | |
| 2017-05-26 | When running rc on the following script, rc crashes. | Drazen Borkovic | |
| fn f1 { v=x { }} fn f2 { f1 1; f1 2 } f2 whatis Valgrind stack: ==10068== Invalid read of size 8 ==10068== at 0x40EFB1: varlookup (var.c:84) ==10068== by 0x407B04: whatare_all_vars (hash.c:311) ==10068== by 0x401E60: b_whatis (builtins.c:323) ==10068== by 0x402E32: exec (exec.c:92) ==10068== by 0x40F997: walk (walk.c:39) The reason is that vp[h].p is freed in delete_var(), but the pointer is kept. Later the pointer is found to be non-null and dereferenced causing the crash. | |||
| 2017-05-25 | remove trailing space | Toby Goodwin | |
| 2017-05-25 | Man page explanation of the -e option include the test in the while() statement. | Drazen Borkovic | |
| 2017-05-25 | Fix: "rc -e" exits if condition in while statement returns false the second time | Drazen Borkovic | |
| 2017-05-25 | tidy up bootstrap: INSTALL is an artifact | Toby Goodwin | |
| 2017-04-17 | document readline tilde expansion | Toby Goodwin | |
| 2017-04-17 | add some tests for unquoted equals | Toby Goodwin | |
| 2017-04-17 | update parse.[ch] | Toby Goodwin | |
| 2017-04-17 | Parse equals sign as keyword | Bert Münnich | |
| The parser treats unexpected keyword tokens (eg. if, while, ~) as literals and not as syntax errors. It does not do this for the equals sign, but it could, as it only has a special meaning at the beginning of a command, much like the keywords. Doing this allows one to write commands like this: dd if'='/dev/zero of'='data bs'='1024 count'='1 without the quotes around the equals signs. All shells from the Bourne family do this. For this to work, the lexer must not automatically terminate words at equals signs, instead it has to generate a free caret around it like for the twiddle and other such special characters. In the parser's grammar we need to get rid of the left recursion in the rules for 'simple' to turn the reduce/reduce conflict at 'first' on '=' (empty -> 'optcaret' or 'first' -> 'simple') into a shift/reduce conflict, which then can be solved with precedence/associativity so that the reduction of the empty 'optcaret' wins over shifting '='. | |||
| 2017-04-17 | improve lshift function in man page | Toby Goodwin | |
| 2017-04-17 | add "rc: " prefix to "cannot shift" error | Toby Goodwin | |
| 2016-08-27 | replace problematic reldate with git describe (thanks @RamKromberg) | Toby Goodwin | |
| 2016-08-27 | git ignore aclocal.m4 | Toby Goodwin | |
| 2016-08-27 | mention that ~ $foo () cannot be combined with other patterns | Toby Goodwin | |
| 2016-08-25 | do not return random value if sigaction fails (thanks @borkovic) | Toby Goodwin | |