From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1925 invoked by alias); 1 Dec 2014 20:20:13 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 19474 Received: (qmail 24158 invoked from network); 1 Dec 2014 20:20:12 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, T_HDRS_LCASE,T_MANY_HDRS_LCASE autolearn=ham version=3.3.2 X-Authority-Analysis: v=2.1 cv=AduIQRnG c=1 sm=1 tr=0 a=BXDGf7yJlKZnrui4jFm7DA==:117 a=BXDGf7yJlKZnrui4jFm7DA==:17 a=G8GL833Es-AA:10 a=IkcTkHD0fZMA:10 a=iwbnAG1FIodUBF-BoUwA:9 a=QEXdDO2ut3YA:10 Message-id: <547CCD76.2020806@eastlink.ca> Date: Mon, 01 Dec 2014 12:20:06 -0800 From: Ray Andrews User-Agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Icedove/31.2.0 MIME-version: 1.0 To: Zsh Users Subject: trivial problem with histverify Content-type: text/plain; charset=utf-8; format=flowed Content-transfer-encoding: 7bit I have this command bound to PgUp: history 1 | grep --color=auto "[[:digit:]] !!" ... it does the obvious thing, I type a string I want to search for in history and get a nice colored listing. When recalling a command from history with '!', I like to have 'setopt histverify' in case I want to edit the command, or just be sure I'm going to execute the correct command before it fires. However, if that option is set, it fouls up the above keybinding in the predictable way, it demands ENTER before it will work. It seems on the face of it that 'histverify' is not being very smart about that, because the key binding isn't executing a command, it's just making a listing. It seems as if the test for 'histverify' is just seeing the literal bangs in the key binding and not figuring out that there is really no command being executed. Is this really what we want? If so, is there a simple work-around? As it is, I just leave 'histverify' off, and try to be careful, so it's hardly important, but I would like to have it both ways if possible.