diff options
author | 2011-07-21 17:48:34 +0800 | |
---|---|---|
committer | 2011-08-02 15:46:29 +0800 | |
commit | 52b5991a8814319c36677d37440a93470b2fa16c (patch) | |
tree | 95c7547b8c6535f20961b779cb4a9f6c2f46e5bd /scripts | |
parent | Walker: support == in arithmetic comparison (diff) | |
download | libbash-52b5991a8814319c36677d37440a93470b2fa16c.tar.gz libbash-52b5991a8814319c36677d37440a93470b2fa16c.tar.bz2 libbash-52b5991a8814319c36677d37440a93470b2fa16c.zip |
Parser: support -a and -i option for local
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/var_def.bash | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/var_def.bash b/scripts/var_def.bash index fe2441d..6dc83dd 100644 --- a/scripts/var_def.bash +++ b/scripts/var_def.bash @@ -75,3 +75,10 @@ FOO005=abc echo $FOO005 FOO005+=def echo $FOO005 +function foo() { + local -i foo=1 + local -a bar=(1 2 3) + echo $foo + echo ${bar[@]} +} +foo |