Re: unfamiliar construct...

2013-03-23 Thread Pierre Gaston
On Sat, Mar 23, 2013 at 3:15 AM, Linda A. Walsh wrote: > In reading some suse startup code (*shiver*), > > I came across this construct > > > > func() { > local comm ## command from /proc/$pid/stat > > for comm; do > test -s comm || continue > ppid = pidofproc $comm > parents="${

unfamiliar construct...

2013-03-23 Thread Linda A. Walsh
In reading some suse startup code (*shiver*), I came across this construct func() { local comm ## command from /proc/$pid/stat for comm; do test -s comm || continue ppid = pidofproc $comm parents="${parents:+parents:}${ppid}" done } --- Is that valid code? do