Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
typeset -F3 SECONDS doesn't work the first time
- X-seq: zsh-workers 30534
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: zsh workers <zsh-workers@xxxxxxx>
- Subject: typeset -F3 SECONDS doesn't work the first time
- Date: Tue, 26 Jun 2012 18:26:03 +0200
- 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==
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author