Hello, So how can i pass the entire array, i m new to shell scripting so i do not really understand when you talk about unsubscripted word expansion Thank you for helping.
Chet Ramey wrote: > >> >> Hello i would like to pass an array to my script command line argument, >> but >> only the first element of the array is displayed. Here is my process : >> >> script1: >> my_array=(el1 el2 el3) >> script2 -f $my_array > > You're only passing the first element of the array to script2. An > unsubscripted word expansion expands to the first element of an array. > > Chet > > -- > ``The lyf so short, the craft so long to lerne.'' - Chaucer > > Chet Ramey, ITS, CWRU [EMAIL PROTECTED] > http://tiswww.tis.case.edu/~chet/ > > > > -- View this message in context: http://www.nabble.com/passing-array-to-command-line-argument.-tp20914576p20915715.html Sent from the Gnu - Bash mailing list archive at Nabble.com.