aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMu Qiao <qiaomuf@gentoo.org>2012-03-01 11:32:58 +0800
committerMu Qiao <qiaomuf@gentoo.org>2012-03-01 11:32:58 +0800
commit66be73c1d8a0c253d34ee76206982e3cf12954b7 (patch)
treec7dca3aa92e923eb9d4e9c505e6e1017f429aa24 /scripts
parentParser: support indirect ref in parameter expansion (diff)
downloadlibbash-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.bash5
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// /_}"