diff options
author | Mu Qiao <qiaomuf@gentoo.org> | 2012-03-01 11:32:58 +0800 |
---|---|---|
committer | Mu Qiao <qiaomuf@gentoo.org> | 2012-03-01 11:32:58 +0800 |
commit | 66be73c1d8a0c253d34ee76206982e3cf12954b7 (patch) | |
tree | c7dca3aa92e923eb9d4e9c505e6e1017f429aa24 /scripts | |
parent | Parser: support indirect ref in parameter expansion (diff) | |
download | libbash-66be73c1d8a0c253d34ee76206982e3cf12954b7.tar.gz libbash-66be73c1d8a0c253d34ee76206982e3cf12954b7.tar.bz2 libbash-66be73c1d8a0c253d34ee76206982e3cf12954b7.zip |
Walker: support indirect ref in runtime
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/command_execution.bash | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/command_execution.bash b/scripts/command_execution.bash index e400409..06d6676 100644 --- a/scripts/command_execution.bash +++ b/scripts/command_execution.bash @@ -79,3 +79,8 @@ echo \`\(\)\$\>\<\` export SRC_URI="${SRC_URI} http://www.oracle.com/technology/products/berkeley-db/db/update/${MY_PV}/patch.${MY_PV}.${i}" > /dev/null (( i=1, j=2)) && echo $i $j +a="ab cd ef" +variable=a +echo "${!variable// /_}" +echo "${!#// /_}" +echo "${!1// /_}" |