Rick Troth wrote:
If you invoke the command as:
. cmdname

It works just fine, since "cmdname" is executed in the current shell.


Yes,  exactly.
But that cannot be done for a binary.
In other words,  an  "executable"  cannot be  "sourced".


If you're suitably determined, something like this could be made to work:
eval $(binary 2>&4 4>&1) 4>&1

Sure, it's grubby, gruesome and/or a Crude Hack.

I sometimes find the need to do something like his, but without the
redirections.


--

Cheers
John

-- spambait
[EMAIL PROTECTED]  [EMAIL PROTECTED]
Tourist pics http://portgeographe.environmentaldisasters.cds.merseine.nu/

do not reply off-list

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

Reply via email to