From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from merlin.resmel.bhp.com.au ([134.18.1.6]) by hawkwind.utcs.toronto.edu with SMTP id <24003>; Wed, 8 Dec 1993 20:49:01 -0500 Received: from cerberus.bhpese.oz.au by merlin.resmel.bhp.com.au with SMTP id AA02503 (5.65c/IDA-1.4.4 for ); Thu, 9 Dec 1993 12:47:33 +1100 Received: from localhost by cerberus.bhpese.oz.au with SMTP id AA00784; Thu, 9 Dec 1993 12:47:56 +1100; sendmail 5.67a/Sm3.8RMPSU (from Sm@cerberus.bhpese.oz.au for rc@hawkwind.utcs.toronto.edu) Message-Id: <199312090147.AA00784@cerberus.bhpese.oz.au> To: rc@hawkwind.utcs.toronto.edu Subject: Re: Translating question In-Reply-To: Your message of "Wed, 08 Dec 93 20:36:38 EST." <199312090136.AA00252@cerberus.bhpese.oz.au> X-Face: '82~l%BnDBWVn])DV^cl_%bla$T]kNbRN&]>v{ED9[" I knew I should have tested that final optimization! Instead, use: (exec 4>&1;(((echo a; echo b>&2; echo c>&3))>&4) 3>&1 | cat > 1); cat 1; rm 1 # ^ note extra paranthesis! ^ so you could probably use: (exec 4>&1;(prog2 >&4) 3>&1 | prog2) # ^ ^ Sm