From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21470 invoked by alias); 13 Feb 2015 17:19:47 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 34531 Received: (qmail 21963 invoked from network); 13 Feb 2015 17:19:44 -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,HTML_MESSAGE, RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:date:message-id:subject:from :to:content-type; bh=/EAaUrldB9oYxLFyEUc64M4KUce96C6BfjCoSCNZkvs=; b=QPlJ7Frpy3fIKPj1aV6uoO2J/Qe2oxQCuRDmVwPspv8RGSouWngnwoWacUa5iu9TQc TBcSzgPZ5V/0Kgr4kRIvp/3n4xZPfd/qMhJpjiiM07DxZnP4KxNg5GBtBCsxpgTPmaaY ju6NcHDioYWFvfCs31o4Xhg8npx2kzuS44ji9toMRl9o6t7aFMDUgGq/JDf1yvzB/j1q ixgH7KKhYEdpuTRl0E+/WutsUHLur4n9tUNRgETxhdRNGx9rN7qS1Nm5iF7uWT4n4zv3 6moA8EhLvvWuxKJeioeM2AyKANlPDreY3/1/A2bFXph9yqD1yIYAGLN30yzXUFHvoWgh m/2g== X-Gm-Message-State: ALoCoQloaS+iRVwUhTX7zSp31Fexbvqy/8Sj27nLRi+duzqHCuGRKqvxPwVEeWKOxVR7S88KHQRg MIME-Version: 1.0 X-Received: by 10.51.16.1 with SMTP id fs1mr5074695igd.8.1423847982398; Fri, 13 Feb 2015 09:19:42 -0800 (PST) Sender: webmaster@dcgleim.com Date: Fri, 13 Feb 2015 11:19:42 -0600 X-Google-Sender-Auth: 4Phb9Q_2oqOraHhcxT_bR4jiff4 Message-ID: Subject: prexec never gets empty string? From: Derek Gleim To: zsh-workers@zsh.org Content-Type: multipart/alternative; boundary=001a1135e68c349a4d050efb71d6 --001a1135e68c349a4d050efb71d6 Content-Type: text/plain; charset=UTF-8 Am I misunderstanding the docs, or is this a bug? > If the history mechanism is active (and the line was not discarded from the history buffer), the string that the user typed is passed as the first argument, otherwise it is an empty string. Yet, whether I "discard" (as I understand it) a command because of histnostore, histignorespace, histnodups, or by returning non-zero from zshaddhistory(), I never get an empty string as the first argument in preexec(). That is: % setopt histignorespace % preexec() { echo $1 } % true ignore me true ignore me zsh 5.0.2 (x86_64-pc-linux-gnu) Ubuntu 14.04.1 By the way, for me this is related to a question I had opened on Stack Overflow, trying to get the prompt expansion `%!` to truly be "the number that is to be assigned to the next command". Thanks in advance. --001a1135e68c349a4d050efb71d6--