Re: Bash script problem [OT?]
- From: Chris Davies <chris-usenet@xxxxxxxxxxxx>
- Date: Wed, 25 Apr 2012 09:05:44 +0100
Cam Hutchison <camh@xxxxxxxx> wrote:
Sigh. Sorry, it was a typo. That explains why it did not work for the OP.
Phew!
These array things are new to me in a shell context - I've used
associative and indexed arrays for years in awk and perl, though - and
after your example didn't work I went digging through the man page.
I missed it the first time I read the paragraph, but then twigged the
explicit use of the word "compound" in the relevant sentence: "When +=
is applied to an array variable using compound assignment (see Arrays
below) ... new values are appended to the array ...". Digging further
I found that "compound" referred to a list assignment such as X=($Y $Z).
Regards,
Chris
--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx
Archive: http://lists.debian.org/ornk69xaek.ln2@xxxxxxxxxxxxxxxxx
- References:
- Bash script problem [OT?]
- From: Soare Catalin
- Re: Bash script problem [OT?]
- From: Cam Hutchison
- Re: Bash script problem [OT?]
- From: Chris Davies
- Re: Bash script problem [OT?]
- From: Cam Hutchison
- Bash script problem [OT?]
- Prev by Date: Re: Is 1600x1200 screen better than 1440x900?
- Next by Date: Re: Problem with resolution on Radeon HD 7459 card (Squeeze)
- Previous by thread: Re: Bash script problem [OT?]
- Next by thread: Issues with fresh debian wheezy with libvirt/kvm :- help please
- Index(es):
Relevant Pages
|