c0ea329297
hush: fix a few thinkos in function support; make it work on NOMMU; functions in child shells now even have $n passed to them! :) (in main shell it still doesn't work)
Denis Vlasenko
2009-04-10 21:22:02 +00:00
b7d8c0dbbd
hush: first stab at function support. argv passing is not coded yet. Only very rudimentary testing was done. With function support off, code growth is zero, with it on:
Denis Vlasenko
2009-04-10 19:05:43 +00:00
0b677d8337
hush: fix some TODOs. TODO in export builting: +250 bytes. simplify unexpected EOF handling.
Denis Vlasenko
2009-04-10 13:49:10 +00:00
1fd1ea4395
hush: tighten up "for" variable name check. Add TODOs. Disable redir4.right part where we differ from bash. It is not a bug per standards. Add a few tests, one is in hush-bugs section: and_or_and_backgrounding.right. It will likely bite users in real world usage.
Denis Vlasenko
2009-04-10 12:03:20 +00:00
f81e8dbc74
*: make "pragma GCC visibility push(hidden)" less ugly
Denis Vlasenko
2009-04-09 12:35:13 +00:00
327fd47f36
skip some tests when fancy echo support is turned off
Mike Frysinger
2009-04-09 07:50:18 +00:00
c3d91952d6
we arent testing echo -n here so use printf instead
Mike Frysinger
2009-04-09 07:50:02 +00:00
20300d0129
source the .config so tests can signal they need to be skipped due to feature disable
Mike Frysinger
2009-04-09 07:49:43 +00:00
fe013a74ff
patch by Stuart Hughes <seh@zee2.com> and Guenter <lists@gknw.net> to make "0" a special baud rate for getty where it uses this as "leave baud rate unchanged"
Mike Frysinger
2009-04-09 07:08:04 +00:00
f50caac53c
hush: typo in comment
Denis Vlasenko
2009-04-09 01:40:15 +00:00
a2218dd862
hush: fix thinko in re_execute_shell; pass even less junk to heredoc helper
Denis Vlasenko
2009-04-09 01:39:02 +00:00
5c090a96f9
hush: more rodust detection of unterminated strings etc; fix a case where we forget to copy cmd text; optimize nommu heredoc helper by not passing environment to it; add several tests
Denis Vlasenko
2009-04-08 21:51:33 +00:00
af07b7c5b6
hush: fix heredoc <<- handling. hush-misc/heredoc2.tests testcase needs only one fix now - $var and cmd expancsion in heredocs
Denis Vlasenko
2009-04-07 13:26:18 +00:00
50f3aa4547
hush: NOMMU-safe support of big heredocs
Denis Vlasenko
2009-04-07 10:52:40 +00:00
d4a24f2aae
here documents have been added, so drop from TODO
Mike Frysinger
2009-04-07 07:28:25 +00:00
932e111418
use sleep rather than usleep
Mike Frysinger
2009-04-07 06:08:14 +00:00
b509c9c670
add a pathological test case for here doc related to eof marker and other ugly corner cases
Mike Frysinger
2009-04-07 06:06:05 +00:00
a4f331d3c3
implement support for parameter substitution via #/% operators
Mike Frysinger
2009-04-07 06:03:22 +00:00
6c9be7f451
hush: heredoc support, based on patch by Mike Frysinger (vapier AT gentoo.org) some TODOs are to be attacked later
Denis Vlasenko
2009-04-07 02:29:51 +00:00
0e15138c03
hush: fix "if false; then...fi" exitcode; trim "keyword"-less hush by 10 bytes
Denis Vlasenko
2009-04-06 18:40:31 +00:00
4ed67dd3d5
make hush-misc/*.tests executable
Denis Vlasenko
2009-04-06 18:10:20 +00:00
cd418a2670
hush: fix a bunch of obscure while/until/continue bugs
Denis Vlasenko
2009-04-06 18:08:35 +00:00
8f8d013afc
*.tests should be executable
Denis Vlasenko
2009-04-06 16:27:51 +00:00
715f712d15
move hush-parsing/and-or.tests to hush-misc/* (which probably needs to be renamed to hush-execution...)
Denis Vlasenko
2009-04-06 16:17:51 +00:00
3a64833eb9
add some brute force logic tests
Mike Frysinger
2009-04-06 14:22:54 +00:00