🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.shell
Article #1074

Need help on Bash syntax

#1074
From: Brad Appleton
Date: Wed, 05 Sep 1990 20:46
30 lines
1730 bytes
Ive been trying to get an answer to this for weeks. I hope someone in this
newsgroup will come through for me!!!!

I need to know everything about bash arrays (assuming they exist).
how does one do the following in bash (if possible):

1) set an array
2) unset an array
3) index an array (get a particular element)
4) modify an array element
5) index a subset of elements (like $argv[3-5] in csh)
6) modify a subset of elements

are there any other subtleties (like "set -A" versus "set +A" in ksh)?
Im getting desperate for this info -- please give me as much info as you 
can on bash arrays.

Also, in bash, what characters need to be escaped inside of double
quotes (including "\", '$' and '`' etc ...) in order to interpreted
literally by the shell (I need an exhaustive list).

I have somewhat of a time limit and I cant wait long enough for the 
documentation to arrive (and no one here has it).

Any and all help is much appreciated!!!!!!

______________________ "And miles to go before I sleep." ______________________
 Brad Appleton        brad@travis.ssd.csd.harris.com   Harris Computer Systems
                          ...!uunet!hcx1!brad          Fort Lauderdale, FL USA
~~~~~~~~~~~~~~~~~~~~ Disclaimer: I said it, not my company! ~~~~~~~~~~~~~~~~~~~
Technical Details
Message-ID: <893@travis.csd.harris.com>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!know!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!uflorida!travis!brad

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!know!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!uflorida!travis!brad
From: brad@SSD.CSD.HARRIS.COM (Brad Appleton)
Newsgroups: comp.unix.shell
Subject: Need help on Bash syntax
Summary: How do you "do" arrays?
Message-ID: <893@travis.csd.harris.com>
Date: 5 Sep 90 20:46:51 GMT
Sender: news@travis.csd.harris.com
Organization: Harris Computers Systems Division, Fort Lauderdale,FL
Lines: 30