Re: Bash script problem [OT?]



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



Relevant Pages

  • RE: array formula
    ... I was digging around on the web for some help information on SUMPRODUCT. ... The corresponding components of each array are then multiplied, ...
    (microsoft.public.excel.worksheet.functions)
  • Re: subroutine call makes foreach exit?
    ... given domain name and put the entries into an array. ... digging, it outputs the array elements to the screen, asks if ...
    (perl.beginners)
  • Re: Newbie output to byte array question
    ... Bill Medland wrote: ... Are you sure you really mean a byte array, or will a char array do? ... I'm new to all this but couldn't you use a CharArrayWriter? ... I'll have to do some more digging I guess. ...
    (comp.lang.java.programmer)
  • Re: making a huge fileserver
    ... fill that up and just buy a new drive, grow the array, and grow the XFS ... you need a second bunch of at least 3 HDD's and attach it to ... Debian GNU/Linux Consultant ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • RE: [PHP] EZ array problem - Whats wrong with my brain?
    ... EZ array problem - What's wrong with my brain? ... Brian Dunning skrev: ... To unsubscribe, visit: http://www.php.net/unsub.php ... PHP General Mailing List ...
    (php.general)