From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from plan9.cs.bell-labs.com ([204.178.31.2]) by hawkwind.utcs.toronto.edu with SMTP id <76097>; Wed, 27 Feb 2002 01:27:31 -0500 Received: from plan9.cs.bell-labs.com ([135.104.9.2]) by plan9; Wed Feb 27 01:26:16 EST 2002 Received: from plan9.cs.bell-labs.com ([141.154.234.126]) by plan9; Wed Feb 27 01:26:14 EST 2002 Message-ID: <0dd80d6ff918424807184c4f650c5424@plan9.bell-labs.com> To: rc@hawkwind.utcs.toronto.edu Subject: Re: non login "rc" needs customized environment From: "Russ Cox" Date: Wed, 27 Feb 2002 01:26:13 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit > Add a flag (say -S) which when used as 'rc -S file' will act as if ". file" > had been the first command executed. I've been thinking of hacking this > into my copy of rc, just so that when starting xterms I can be lasy and > forgo typing '. .rc/interactive' into every new shell. > > This could then be used with "ssh -t host 'rc -S startup_file'" from the > originating host if a specific environment set up is required. I quite Even easier, just use ssh -t host 'rc -c ''. startup_file; . -i /dev/stdin'''.