On Tue, Aug 14, 2001 at 11:57:18AM -0700, Justin Bengtson wrote:
>
>is it possible, in a BASH script, to invoke a program, stuff the return into
>a variable and perform actions based on what was returned?  what if the
>invoked program returned multiple results?  is there a way to sort them out
>and assign them each variables?
>

Bash supports arrays, so you can have a function return an array and then 
use that array in other things; Larry still has my bash book, so that's about
all i can say with confidence :-)

-- 
Caeli, Lesbia nostra, Lesbia illa, / illa Lesbia, quam Catullus unam 
plus quam se atque suos amavit omnes, / nunc in quadriviis et angiportis 
glubit magnanimi Remi nepotes. 
                                -- Catullus 58

Reply via email to