From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8043 invoked by alias); 6 Jun 2012 08:37:16 -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: 17133 Received: (qmail 7587 invoked from network); 6 Jun 2012 08:37:14 -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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham version=3.3.2 Received-SPF: none (ns1.primenet.com.au: domain at necoro.eu does not designate permitted sender hosts) Message-ID: <4FCF153E.9040405@necoro.eu> Date: Wed, 06 Jun 2012 10:30:54 +0200 From: =?ISO-8859-15?Q?Ren=E9_Neumann?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20120529 Thunderbird/12.0.1 MIME-Version: 1.0 To: zsh-users@zsh.org Subject: "Bug" in promptnl Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 8bit Hi, the following message sometimes is printed after some program finishes in the shell (I can't really find a pattern on when this happens): promptnl:65: bad math expression: operand expected at `> 1 ' The offending line should be this: ( ${${RECV#*\;}%R} > 1 )) && print -P -- $EOLMARK The promptnl is the one from the normal zsh-distribution. The message is no real problem but just confusing :). Is there an easy way to fix it? Probably just checking that {${RECV#*\;}%R} does not evaluate to the empty string, isn't it? - René