Jul 6, 2010 #1 TSch Technical User Jul 12, 2001 557 DE Hi folks, I'm trying to rewrite a ksh script to work under bash .. Following problem: I can't fill parameters using command outputs. Like this: Code: parm=$(lsvg) Could someone help me with the specific bash syntax used to accomplish this ? Regards, Thomas
Hi folks, I'm trying to rewrite a ksh script to work under bash .. Following problem: I can't fill parameters using command outputs. Like this: Code: parm=$(lsvg) Could someone help me with the specific bash syntax used to accomplish this ? Regards, Thomas
Jul 6, 2010 1 #2 PHV MIS Nov 8, 2002 53,708 FR Have you tried this ? parm=`lsvg` Hope This Helps, PH. FAQ219-2884 FAQ181-2886 Upvote 0 Downvote
Jul 6, 2010 Thread starter #3 TSch Technical User Jul 12, 2001 557 DE That's it, perfect ! Thanks a lot. Upvote 0 Downvote
Jul 6, 2010 #4 Annihilannic MIS Jun 22, 2000 6,317 AU I've never known $( ... ) not to work in bash... is it a really, really old version or something? Annihilannic. Upvote 0 Downvote
I've never known $( ... ) not to work in bash... is it a really, really old version or something? Annihilannic.