aboutsummaryrefslogtreecommitdiff
path: root/shell/hush_test
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2009-04-10 13:49:10 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2009-04-10 13:49:10 +0000
commit0b677d833718ab6c46bd4790c662c67fba4f377a (patch)
treed4a9cc818a546476c0617f93f5efc13a6a7d2a15 /shell/hush_test
parent1fd1ea4395e520694bd9f8b1dc9e60af6442946d (diff)
downloadbusybox-0b677d833718ab6c46bd4790c662c67fba4f377a.tar.gz
hush: fix some TODOs. TODO in export builting: +250 bytes.
simplify unexpected EOF handling. function old new delta builtin_export 117 374 +257 o_reset_to_empty_unquoted - 21 +21 parse_stream 1926 1929 +3 syntax_error_unterm_ch 31 32 +1 handle_dollar 644 641 -3 parse_stream_dquoted 307 298 -9 add_till_backquote 106 97 -9 add_till_closing_paren 303 286 -17 o_reset 21 - -21 ------------------------------------------------------------------------------ (add/remove: 1/1 grow/shrink: 3/4 up/down: 282/-59) Total: 223 bytes
Diffstat (limited to 'shell/hush_test')
-rw-r--r--shell/hush_test/hush-misc/export.right6
-rwxr-xr-xshell/hush_test/hush-misc/export.tests7
2 files changed, 13 insertions, 0 deletions
diff --git a/shell/hush_test/hush-misc/export.right b/shell/hush_test/hush-misc/export.right
new file mode 100644
index 000000000..4df2e3858
--- /dev/null
+++ b/shell/hush_test/hush-misc/export.right
@@ -0,0 +1,6 @@
+export aaa1="'''"
+export aaa2=
+export aaa3="'''"'abc'
+export aaa4='def'"'''"
+export aaa5="'''"'abc'"'''"'def'"'''"
+Done
diff --git a/shell/hush_test/hush-misc/export.tests b/shell/hush_test/hush-misc/export.tests
new file mode 100755
index 000000000..87a27ecce
--- /dev/null
+++ b/shell/hush_test/hush-misc/export.tests
@@ -0,0 +1,7 @@
+export aaa1="'''"
+export aaa2=""
+export aaa3="'''abc"
+export aaa4="def'''"
+export aaa5="'''abc'''def'''"
+export | grep aaa.=
+echo Done