This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Using arrays with the Bash Shell



Is it possible to use arrays with the Bash Shell, such as this


	var[$lineno]=$line
	if ["${var[$lineno]}"= x]
	then
		echo found
	fi
		lineno=`expr $lineno + 1`


This is possible in other Shells, but is it possible in the Bash
Shell, if how do I go about it.

Thanks again

Chris J

=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=

	Chris Jeffares		
	Graduate Research Assistant 	 Purdue University at Indianapolis
	
	office ==> SL041, (317) 274-3089
	email  ==> cjeffare@cs.iupui.edu
	www    ==> http://klingon.iupui.edu/~cjeffare/home.html

	The Nebraska Cornhuskers, Gotta luv 'em	
	Go Big Red!!...Huckin' Fuskers in 1997 

	"Experience...the name everyone gives to their mistakes."

=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]