[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bash script problem [OT?]



Chris Davies <chris-usenet@roaima.co.uk> writes:

>Cam Hutchison <camh@xdna.net> wrote:
>> BK_LIST=()

>> Append to the array with +=
>>  BK_LIST+="${PARAM}"

>This += syntax appears not to work with my version of bash
>("4.1.5(1)-release" from package bash 4.1-3). Instead I have
>to do this:

>  BK_LIST+=("${PARAM}")

>Was yours a typo, or is it something that now works in yet newer
>versions of the shell?

Sigh. Sorry, it was a typo. That explains why it did not work for the OP.
I though that was strange, since I've successfully used arrays to maintain
argument vectors with arguments containing spaces. I was so sure it worked
that I focussed on testing the wrong part.


Reply to: