The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



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

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 07-19-2001
Kriton Kriton is offline
Registered User
  
 

Join Date: Jul 2001
Posts: 2
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
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 02:03 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0