From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22758 invoked by alias); 26 Jun 2012 16:26:16 -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: 30534 Received: (qmail 22396 invoked from network); 26 Jun 2012 16:26:15 -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.6 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED,RCVD_IN_DNSWL_LOW, T_DKIM_INVALID autolearn=no version=3.3.2 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 209.85.160.43 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=ylenyJ2+yFBeA0BzZ8uJGqOGf7o93lVcwsCf088XDiI=; b=Eqott6TqtjkDuLXzbeKk6VaIpNHd5Z+7+2Kk2nHZHXWX2topbTucNhPBdpExPVit5S xy1UTwJQ60u8JJSiir/a8teN7ni72gObAod5WyenO71kkFX5rTEyOGbH48asIlkv5a5w eZuiPgqQI4oNnqCms6PoCuDnxSqTDbmEUPnjvSRwDHMiaYqvWtHy03H+1jmH6mIppSxU E5r3U5AbnTtJy0MrkPqOujh9voALe4wcHf2B1TcB1ybpVmDfK+uQrFSpk7t9AXBtwRDQ GhfVa+Sm5r5Mjqp/Svo5BlfMT2MU9ujKJJleXm/4t4sli4/B2SrdrAOjt412u+2DW+v1 iLqg== MIME-Version: 1.0 Date: Tue, 26 Jun 2012 18:26:03 +0200 Message-ID: Subject: typeset -F3 SECONDS doesn't work the first time From: Mikael Magnusson To: zsh workers Content-Type: text/plain; charset=UTF-8 I think the code in typeset_single() near if (!readonly && !strcmp(pname, "SECONDS")) is to blame, it does something magic if you're changing the type of $SECONDS and then returns without checking any other options given to typeset. I tried removing the return pm; and setting err=0; but that segfaults. -- Mikael Magnusson