-
Notifications
You must be signed in to change notification settings - Fork 54
Open
Labels
waiting for more exampleMore input is required to clarify the problem. Please add more example to reproduce the issue.More input is required to clarify the problem. Please add more example to reproduce the issue.
Description
This is not what I was expecting:
source "$(command -v docopts).sh"
declare -A args
args['FILE,#']=2
args['FILE,0']=somefile1
args['FILE,1']='some file with space inside'
array=( $(docopt_get_values args FILE) )
if [[ "${array[1]}" != 'some file with space inside' ]] ; then
echo "element #1 is not properly set"
fi
if [[ "${array[*]}" == 'somefile1 some file with space inside' ]] ; then
echo "5 elements - 1 per word"
fi
There is no indication it should not work in docs or comments
Metadata
Metadata
Assignees
Labels
waiting for more exampleMore input is required to clarify the problem. Please add more example to reproduce the issue.More input is required to clarify the problem. Please add more example to reproduce the issue.