diff options
author | 2011-07-26 19:35:47 +0800 | |
---|---|---|
committer | 2011-08-02 15:52:18 +0800 | |
commit | 8a4182d62b11c5b878ab2b15f1ad4d01e6544ecc (patch) | |
tree | 8d90b1a0bd2acd24dc0dad660e9fc0ad3625f0c8 /scripts | |
parent | Parser: fix here document start (diff) | |
download | libbash-8a4182d62b11c5b878ab2b15f1ad4d01e6544ecc.tar.gz libbash-8a4182d62b11c5b878ab2b15f1ad4d01e6544ecc.tar.bz2 libbash-8a4182d62b11c5b878ab2b15f1ad4d01e6544ecc.zip |
Core: do not declare $* to be read-only
$* can be shifted so it's not read-only.
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/function_def.bash | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/function_def.bash b/scripts/function_def.bash index 8b7bd50..609d8b4 100644 --- a/scripts/function_def.bash +++ b/scripts/function_def.bash @@ -87,3 +87,10 @@ if false; then } fi function_in_compound_statement + +function shift_test() { + shift + echo $1 +} + +shift_test 1 2 |