git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [RFC/PATCH] Bisect: add special treatment for bangs passed to "bisect run".

From
Uwe Kleine-König <ukleinek@informatik.uni-freiburg.de>
Date
May 1, 2007, 09:44 UTC
Message-ID
<20070501094403.GA7613@informatik.uni-freiburg.de>
In-Reply-To
<20070501113112.c4b32b55.chriscool@tuxfamily.org>
Hallo Christian,
Show 5 quoted lines
> Something like:
> 
>  $ git bisect run ! grep string my_file
> 
> does not work right now, probably because '!' is a shell keyword.

I didn't check you patch in deep, but you should consider that the special meaning of "!" isn't implemented in the original Bourne Shell[1].

IIRC this or something similar was brought up some time ago and the result was, that your script has to do the negation if needed.

Best regards Uwe

[1] login@~ > uname -a
    SunOS login 5.10 Generic_118833-36 sun4u sparc
    login@~ > /bin/sh -c "! true"
    /bin/sh: !: not found
-- 
Uwe Kleine-König

cal 9 1752 | grep 10
Previous: Christian Couder
Message 2 of 2 in “Bisect: add special treatment for bangs passed to "bisect run".”
  1. Bisect: add special treatment for bangs passed to "bisect run".Christian Couder, May 1, 2007
  2. Uwe Kleine-KönigMay 1, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.