From dadfb4975b23b284fa02d15a5cfd21593b2993fc Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Tue, 29 Jul 2008 10:16:05 +0000 Subject: hush: add #defines to switch off break/continue if loops are not supported *: remove a few inline keywords no code changes --- shell/hush_test/hush-misc/builtin1.right | 2 ++ shell/hush_test/hush-misc/builtin1.tests | 6 ++++++ 2 files changed, 8 insertions(+) create mode 100644 shell/hush_test/hush-misc/builtin1.right create mode 100755 shell/hush_test/hush-misc/builtin1.tests (limited to 'shell/hush_test/hush-misc') diff --git a/shell/hush_test/hush-misc/builtin1.right b/shell/hush_test/hush-misc/builtin1.right new file mode 100644 index 0000000..2e55ecb --- /dev/null +++ b/shell/hush_test/hush-misc/builtin1.right @@ -0,0 +1,2 @@ +VARIABLE=export +OK:0 diff --git a/shell/hush_test/hush-misc/builtin1.tests b/shell/hush_test/hush-misc/builtin1.tests new file mode 100755 index 0000000..1a2941f --- /dev/null +++ b/shell/hush_test/hush-misc/builtin1.tests @@ -0,0 +1,6 @@ +# builtins, unlike keywords like "while", can be constructed +# with substitutions +VARIABLE=export +$VARIABLE VARIABLE +env | grep ^VARIABLE +echo OK:$? -- cgit v1.1