diff options
author | 2012-07-27 04:02:20 +0100 | |
---|---|---|
committer | 2012-08-03 04:07:25 +0100 | |
commit | 5a31b0886ca36364c34ed04011bcdac211bb5bd7 (patch) | |
tree | 48f815a2787cc79e541dcc61650faa8a73ec3690 /scripts | |
parent | Walker: Fix appending to an array of size 1 (diff) | |
download | libbash-5a31b0886ca36364c34ed04011bcdac211bb5bd7.tar.gz libbash-5a31b0886ca36364c34ed04011bcdac211bb5bd7.tar.bz2 libbash-5a31b0886ca36364c34ed04011bcdac211bb5bd7.zip |
Parser: Multiline string declaration
Support quoted strings line breaks in builtin variable definitions
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/command_execution.bash | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/scripts/command_execution.bash b/scripts/command_execution.bash index c526d75..ca8a4e5 100644 --- a/scripts/command_execution.bash +++ b/scripts/command_execution.bash @@ -82,6 +82,20 @@ echo ${array[@]} ech\ o Hello\ world +function multiline() +{ + declare var1="foo +bar" + export var2="one + two +three" + local var3="foo +bar" + echo $var1 + echo $var2 + echo $var3 +} +multiline echo \`\(\)\$\>\<\` export SRC_URI="${SRC_URI} http://www.oracle.com/technology/products/berkeley-db/db/update/${MY_PV}/patch.${MY_PV}.${i}" > /dev/null |