Project

General

Profile

Bug #8893 ยป varexp.sh

Brett Smith, 04/08/2016 02:58 PM

 
1
#!/bin/bash
2

    
3
showvars() { echo "$#" "$@"; }
4

    
5
declare -a VOLUMES=()
6
showvars "${VOLUMES[@]}"
7

    
8
VOLUMES+=("-v=/tmp")
9
showvars "${VOLUMES[@]}"
10

    
11
VOLUMES+=("-v=/test/spacey  path")
12
showvars "${VOLUMES[@]}"
    (1-1/1)