Project

General

Profile

Bug #8893 ยป varexp.sh

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

 
#!/bin/bash

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

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

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

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