for his 'for i in $1' to work he'd have to use import_data "$companies" If he were to use import_data $companies he have to use for i in $*
> -----Original Message----- > From: Tony Green [mailto:[EMAIL PROTECTED]] > Sent: Thursday, 13 June 2002 12:53 > To: [EMAIL PROTECTED] > Subject: Re: [SLUG] bash script function > > > On Thu, 2002-06-13 at 12:39, Alister Waller wrote: > > I have a global variable > > companies="A B C D E" > > > > i have a call to a function that is > > > > import_data companies > > Try > > import_data $companies > > this makes $1 become the word companies > > Whats the syntax to make $1 become $companies and therefore > substitute A B C > > D E. > > > -- > Tony Green <[EMAIL PROTECTED]> > Tel : +61-(0)2-9500-9996 > -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
