Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 26 Aug 2001 03:34:25 +0100 (BST)
From:      Joshua Goodall <joshua@roughtrade.net>
To:        Kris Kennaway <kris@obsecurity.org>, anthony malizzio <zchicago@hotmail.com>
Cc:        <freebsd-bugs@FreeBSD.org>
Subject:   Re: i386/30013: a program loops when used with &&
Message-ID:  <Pine.LNX.4.33.0108260315270.8157-100000@elm.phenome.org>
In-Reply-To: <200108252140.f7PLe1736097@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.4.33.0108260315270.8157-100000>