From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from localhost by hawkwind.utcs.toronto.edu with SMTP id <2685>; Fri, 13 Aug 1993 16:52:57 -0400 Return-Path: immd3.informatik.uni-erlangen.de!dalibor Received: from faui33.informatik.uni-erlangen.de ([131.188.33.2]) by hawkwind.utcs.toronto.edu with SMTP id <2685>; Fri, 13 Aug 1993 11:47:48 -0400 Received: from faui30a.informatik.uni-erlangen.de by immd3.informatik.uni-erlangen.de with SMTP (5.64+/7.2b-FAU) id AA03866; Fri, 13 Aug 93 17:47:35 +0200 From: Stefan Dalibor Message-Id: <9308131547.AA03866@faui33.informatik.uni-erlangen.de> Date: Fri, 13 Aug 1993 11:47:34 -0400 To: rc-owner Subject: Question about input redirection in -c Reply-To: dalibor@immd3.informatik.uni-erlangen.de Resent-To: rc Resent-Date: Fri, 13 Aug 1993 16:52:48 -0400 Resent-From: Chris Siebenmann Resent-Message-Id: <93Aug13.165257edt.2685@hawkwind.utcs.toronto.edu> Hi, from the manpage: -c If -c is present, commands are executed from the immediately following argument. Any further arguments to rc are placed in $*. and: exec [arg ...] Replaces rc with the given command. If the exec con- tains only redirections, then these redirections apply to the current shell and the shell does not exit. For example, exec >[2] err.out places further output to standard error in the file err.out. this made me think rc -c 'pwd; . /dev/tty' would have the same effect as rc -c 'pwd; exec