P.S. to the P.P.P.S.:

On Tue, Jun 26, 2012 at 7:55 AM, Ben Scott <[email protected]> wrote:
>  I kept trying this one-liner:
>
> ANSWER=$( ( dialog --output-fd 3 --inputbox 'Speak Friend and enter' 0
> 0  > /dev/fd/4 ) 3>&1 4>&1 )

  This may make the redirection I'm talking about clearer:

ANSWER=$( ( dialog --output-fd 3 --inputbox 'Speak Friend and enter' 0
0 1>/dev/fd/4 ) 3>&1 4>&1 )

  It specifies the stdout file descriptor explicitly for the
redirection of the dialog(1) process.

-- Ben

_______________________________________________
gnhlug-discuss mailing list
[email protected]
http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/

Reply via email to