From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from yonge.csri.toronto.edu ([128.100.1.2]) by hawkwind.utcs.toronto.edu with SMTP id <2744>; Tue, 30 Jun 1992 11:41:37 -0400 Received: from redvax by yonge.csri.toronto.edu with UUCP id <5029>; Tue, 30 Jun 1992 11:41:16 -0400 Received: by redvax.mimosa.com (4.0/SMI-4.0) id AA10123; Tue, 30 Jun 92 11:03:42 EDT Date: Tue, 30 Jun 1992 11:03:42 -0400 From: hugh@mimosa.com ("D. Hugh Redelmeier") Message-Id: <9206301503.AA10123@redvax.mimosa.com> To: dylan@ibmpcug.co.uk, davidf@golem.uucp Subject: Re: -s flag Cc: rc@hawkwind.utcs.toronto.edu | From: Matthew Farwell | | It's a lot better to fix Jove than to 'fix' rc. You could do this like | vi/ex does it. If I execute a subshell command in vi, then any % is | replaced by the current filename, ie | | :!mv % %.bak This is not better for a couple of reasons. The first is that we are talking about an interractive shell, taking over the tty for its command input. For JOVE to do % replacement, it would have to do the command input and feed the shell through a PTY or something. Ugh! The second is that it would be yet another level of magic processing of the command. $1 already has a meaning to the shell, and the shell can determine by its own rules (scope, quoting, etc.) when the substitution is appropriate. | From: "David J. Fiander" | | It would be nice if this feature was documented, though. True. I have just updated the JOVE documentation. Hugh Redelmeier hugh@mimosa.com or {utcsri, uunet!attcan, utzoo, scocan}!redvax!hugh When all else fails: hugh@csri.toronto.edu +1 416 482-8253