From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from postman.osf.org ([130.105.1.152]) by hawkwind.utcs.toronto.edu with SMTP id <2663>; Wed, 1 Jul 1992 15:13:28 -0400 Received: from earth.osf.org by postman.osf.org (5.64+/OSF 1.0) id AA08985; Wed, 1 Jul 92 15:13:11 -0400 Received: by earth.osf.org (5.64/4.7) id AA00693; Wed, 1 Jul 92 15:13:11 -0400 Date: Wed, 1 Jul 1992 15:13:11 -0400 From: rsalz@osf.org Message-Id: <9207011913.AA00693@earth.osf.org> To: rc@hawkwind.utcs.toronto.edu Subject: rc and rsh I don't think I understand the problems people are having with rsh and rc. Does this function do the 'right thing' ? fn rsh host1 host2... { flag= host=$0 { ~ $1 -n && { shift ; flag=-n } ~ $0 rsh && { host=$1 ; shift } eval 'rsh $flag $host rc -lc ''' ^ $* ^ '''' } }