![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| passing variable from bash to perl from bash script | arsidh | Shell Programming and Scripting | 10 | 06-04-2008 01:25 PM |
| awk arrays | imonthejazz | Shell Programming and Scripting | 1 | 09-21-2007 10:29 AM |
| Problem setting up Bash user account | sumanroyc | UNIX for Advanced & Expert Users | 2 | 10-27-2006 06:57 PM |
| Query regarding alias and setting bash as a default script | VENC22 | UNIX for Dummies Questions & Answers | 1 | 07-13-2005 10:18 AM |
| KSH and arrays | whited05 | Shell Programming and Scripting | 1 | 06-24-2005 01:07 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
bash: setting arrays
Ok, I searched the threads a couple of times but couldn't find anything really relevant. Here's my problem, maybe you can help:
I am running version 1.14.7 of the bash shell, on Red Hat Linux. I am trying to set an array like so: bash$> letters=(x y z) spaces are between the letters but not between the parenthesis and the equals Now, on version 2.01.1 running on a Sun machine that command works fine, the array set properly, but for some reason it won't take on the older version. This must mean that i'm doing it wrong and the old version has a different way to set arrays. If someone knows the answer as to whether or not you can do this on the old version and how it's done, i would really appreciate it. The catches are that the one system is not mine and I don't have the authority to upgrade the bash shell to the newer version, and the scripts I wish to create and run must be run on the system with the old bash shell. I've also checked the bash manual for this old version and didn't really find anything of use. Maybe I missed something, please help if you can. Thanks. K |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|