From owner-freebsd-bugs Sat Aug 25 19:34:49 2001 Delivered-To: freebsd-bugs@freebsd.org Received: from elm.phenome.org (elm.phenome.org [194.153.169.3]) by hub.freebsd.org (Postfix) with ESMTP id 7BFA937B40C for ; Sat, 25 Aug 2001 19:34:46 -0700 (PDT) (envelope-from joshua@roughtrade.net) Received: from localhost (joshua@localhost [127.0.0.1]) by localhost (8.12.0.Beta7/8.12.0.Beta7/Debian 8.12.0.Beta7-1) with ESMTP id f7Q2YPCC018074; Sun, 26 Aug 2001 03:34:39 +0100 Date: Sun, 26 Aug 2001 03:34:25 +0100 (BST) From: Joshua Goodall X-X-Sender: To: Kris Kennaway , anthony malizzio Cc: Subject: Re: i386/30013: a program loops when used with && In-Reply-To: <200108252140.f7PLe1736097@freefall.freebsd.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Sat, 25 Aug 2001, Kris Kennaway wrote: > On Thu, Aug 23, 2001 at 05:14:17PM -0700, anthony malizzio wrote: > > > when you run a program from a shell with the && operator and a righthand with an ascii escape char, the program re-executes up to 16 times after prior closes. > > >How-To-Repeat: > > asdf$ any_executable && `^x` # where x is any character > > Which shell? I don't see this in tcsh. > > Kris Nor I, but if you actually type `^x` (four characters) rather than `ctrl-v ctrl-x`, you get precisely the described symptoms. In those backticks is a history substitution on the "previous command" which just happens to be the entered commandline, from the point of view of the backticks. You can see more clearly what's going on with $ echo bar && echo foo `^b^B` Other shells may differ in the semantics of this, but I think this is a feature, not a bug. Joshua To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message