Age | Commit message (Collapse) | Author | |
---|---|---|---|
2021-04-14 | Fix $IFS: skip trailing whitespace after first non-whitespace separator. | Rob Landley | |
2021-04-11 | toysh: save _resolved_ variable contents in $IFS cache. | Rob Landley | |
2021-04-10 | Fix more toysh tests. | Rob Landley | |
2021-04-10 | Fix next couple of sh tests. | Rob Landley | |
Cached $IFS value has to be per function context because local vars. | |||
2021-04-03 | Fix the next test. | Rob Landley | |
2021-04-03 | Add a missing pop_block(). | Rob Landley | |
2021-03-31 | Toysh: adding function logic screwed up pipe/block logic. Fix it. | Rob Landley | |
Remove cached blk/pout/urd and make TT.ff->blk always be populated instead (like TT.ff, list is never empty), have current pipe (and block trailing) redirections live in current TT.ff->blk. Left in a bunch of commented debug printfs and a filehandle dump function. | |||
2021-03-19 | Fix another sh regression. | Rob Landley | |
2021-03-19 | Fix some more sh regressions. | Rob Landley | |
2021-03-18 | Fix first few testsuite regressions from function/local plumbing. | Rob Landley | |
2021-03-17 | Tighten up parse_word() a bit and and teach it to read empty ${} | Rob Landley | |
(fixes up some test suite tests). | |||
2021-03-17 | Add local variables and basic function() support plumbing. | Rob Landley | |
Not fully wired up yet, probably a bunch of regressions. | |||
2021-01-30 | Fix a couple of test regressions from last commit adding function() plumbing. | Rob Landley | |
2021-01-28 | toysh: start of function call logic. | Rob Landley | |
2021-01-28 | Shut gcc's "is not actually used uninitialized" false positive warnings up. | Rob Landley | |
2020-12-26 | toysh: fix break/continue | Rob Landley | |
2020-12-25 | toysh fixes and tests | Rob Landley | |
2020-12-19 | Fix (( )) quote termination. | Rob Landley | |
2020-12-15 | Implement set, trace support, and function call context stack. | Rob Landley | |
2020-11-27 | toysh: Adjust $0 for scripts. | Rob Landley | |
2020-11-16 | Factor out do_source(), fpathopen(), and prompt_getline(). | Rob Landley | |
Use 0 optstr prefix, fix bug initializing toys.envc one too low. | |||
2020-10-23 | Fix endless recursion bug on nommu for sh -c 'echo $(echo)' | Rob Landley | |
2020-10-19 | More tests, and a workaround to pass one of them. | Rob Landley | |
(The bug is that "echo hello \" followed by just enter should end the $PS2 state but it persists when the line is empty because resulting collated line still ends with \ so it wants another line.) | |||
2020-10-19 | Implement source, fix empty ${x-alt}, use %zu as suggested by e5ten. | Rob Landley | |
2020-10-14 | Fix && || traversing loops, and typecast past size_t being stupidly typed. | Rob Landley | |
2020-10-14 | Implement ${var/search/replace} | Rob Landley | |
2020-10-13 | Fix up ${x%y} ${x^y} ${x,y} and add tests. | Rob Landley | |
2020-10-11 | toysh: more variable/wildcard plumbing and tests. | Rob Landley | |
2020-10-06 | toysh: Yank debug scaffolding. | Rob Landley | |
2020-10-06 | toysh file wildcards: echo toys/*/*.c works now. | Rob Landley | |
2020-10-04 | Implement ${x#y} and ${x##y} | Rob Landley | |
Debug wildcard * match, teach skipslash() to fill out a wildcard deck, make collect_wildcards() flush remove the parsing-only 0th entry. | |||
2020-10-01 | Debug wildcard plumbing. | Rob Landley | |
2020-09-27 | Implement wildcard match plumbing. (Not yet fully debugged.) | Rob Landley | |
2020-09-14 | Fix multiline case/esac parsing, make syntax_err() exit non-interactve | Rob Landley | |
contexts like scripts, and tweak debug scaffolding. | |||
2020-09-05 | Fix segfault for sh -c 'echo {a..Z}' | Rob Landley | |
Bash produces different output for that test, but I'm not sure I care? http://lists.landley.net/pipermail/toybox-landley.net/2020-September/011990.html The problem is parse_word() guarantees its output's quotes/escapes are completed, but brace expansion happens after parse_word() and thus violating assumptions later code depends on to not do redundant error checking. The easy fix is to escape punctuation produced by parse_word (which in bash can only happen when you span upper and lower case ranges so "\" is the only interesting character). I could special case this to match bash exactly, but I'm waiting for someone to complain instead. | |||
2020-09-03 | Implement brace sequence expressions ala {a..z} and {1..37..2} | Rob Landley | |
2020-08-31 | Implement select. | Rob Landley | |
2020-08-31 | Implement case/esac, add more wildcard tests. | Rob Landley | |
2020-08-05 | toysh: next round of wildcard plumbing | Rob Landley | |
2020-07-28 | toysh: more wildcard plumbing | Rob Landley | |
2020-07-22 | toysh: Start of wildcard plumbing. | Rob Landley | |
2020-07-15 | toysh: NOSPLIT shouldn't collate whitespace $IFS | Rob Landley | |
2020-07-14 | toysh: honor nosplit, expand_one_arg shouldn't free (that's what del list for) | Rob Landley | |
2020-07-12 | Fixing up failing tests cases. | Rob Landley | |
2020-07-11 | Chunk of job control plumbing and start of ${x:1:3} variable slicing support. | Rob Landley | |
2020-06-10 | Chunk of job control pumbing. | Rob Landley | |
2020-06-09 | Inline/remove block_end() and skip_andor(). Add ->end pointer to sh_pipeline | Rob Landley | |
pointing to end of current block so we don't have to search for it later. | |||
2020-05-27 | Convert array_add() to arg_add(). | Rob Landley | |
2020-05-26 | Fix syntax checking for "if true; then echo hello | fi", fix some tests, | Rob Landley | |
slightly more elaborate debug output. | |||
2020-05-17 | Don't ask for line continuation when ending with & | Rob Landley | |