Running an array of processes
Posted
by User1
on Stack Overflow
See other posts from Stack Overflow
or by User1
Published on 2010-04-23T23:19:00Z
Indexed on
2010/04/23
23:23 UTC
Read the original article
Hit count: 255
I have the following array:
procs=( 'one a b c' 'two d e f' 'three g h i' )
I try run these processes from a loop (using echo instead of eval so I can debug):
for proc in ${procs[@]} do echo $proc done
I get:
one a b c two d e f three g h i
I wanted:
one a b c two d e f three g h i
What went wrong?
© Stack Overflow or respective owner