From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: zsh-workers-return-43652-ml=inbox.vuxu.org@zsh.org X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from primenet.com.au (ns1.primenet.com.au [203.24.36.2]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id 711a226b for ; Tue, 9 Oct 2018 08:27:46 +0000 (UTC) Received: (qmail 12762 invoked by alias); 9 Oct 2018 08:27:35 -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: List-Unsubscribe: X-Seq: 43652 Received: (qmail 9777 invoked by uid 1010); 9 Oct 2018 08:27:35 -0000 X-Qmail-Scanner-Diagnostics: from mail-wr1-f44.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(209.85.221.44):SA:0(-1.9/5.0):. Processed in 3.149724 secs); 09 Oct 2018 08:27:35 -0000 X-Envelope-From: stephane.chazelas@gmail.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-disposition:in-reply-to:user-agent; bh=jySTNZerFXGXKPQg8vM1+QYOmAaQ5aex0Pc/FK/6aT8=; b=e9Y7u463ltXScDS2l+MjcLU+5yRUPEeJB+n5rCwdflJvMrs23FLTODB4oeFNAaBXSg X84nNT5y07CKoto3YItdvcajWV/D1jmA5gC9nh1R3B89V9dlHV3PN7DGOWiRxE/9CPST Txv/yKXQCtYZrIbSsN+NZqMw4WW0E9oX7kMWUPR6hGFrC5gdulLCR5T8vxfBDceBW3Xp OH7vU2wV9FbAtT8Y7rJkTzsWi3n4LDs9vTWzLBvLrdHa1HBjwzmiNZ8+1zF2rLjV3lEi j++1/jAV5NlF3bEnTxsbtTMjy/vtgUcoieFGRTsBoVL5czEsM6BbCdtPdpIcBEbHROv5 F7Gw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-disposition :in-reply-to:user-agent; bh=jySTNZerFXGXKPQg8vM1+QYOmAaQ5aex0Pc/FK/6aT8=; b=Sa4/6J9szaFOnb6GvqZ8IqMHGqzB7PXNIlzlnn3fHGN7weflI5X3LhYLVJxVa9UmJW jsaif2GA203OhwNrvcvYPzMKRaTxFPR0qMor5nDlmMHHm3l1YwjX2erSjRPexA370IgU zWmH9TYt/PTQxJpikQPg3HG4uuKcxa3JFjZHT3TzDPV6WAwrkWzgVH65FpXvP71YNxLo wSQW8z7Jv5uhZiLsWlBWWwd5t/mzB7U9pdkQIEO9jgT1+kXQitEeQx9HOE8+MsKVC5FE rGXVJbQBKQuoECB6lv2pVG8R9jDjpL21b5YVedqgTjdhhhifzFmc5qD55ceU9b4rUH16 dE8g== X-Gm-Message-State: ABuFfoiSNunBcNp8pD10rWbm1r7LEjXj+1w/CH97fpSTz5L58466eYnP PumvhLLH+94PtN15sI2BS5g780DCEz8= X-Google-Smtp-Source: ACcGV61sRWK/G6/9B9RVjyOkvqYYaP05cBhQaxzlYLH0mrxpTXtbvknkTGyWTtQsqnilJw3JIzM+RQ== X-Received: by 2002:adf:f111:: with SMTP id r17-v6mr19670468wro.303.1539073648107; Tue, 09 Oct 2018 01:27:28 -0700 (PDT) Date: Tue, 9 Oct 2018 09:27:26 +0100 From: Stephane Chazelas To: TS Cc: Zsh workers Subject: Re: zsh-workers 43616, typeset doesn't report tied parameters Message-ID: <20181009082726.nm6yeuqfjghtounf@chaz.gmail.com> Mail-Followup-To: TS , Zsh workers References: <20181009073138.c6uxzj6uljevwqcx@chaz.gmail.com> <816f3f14-f4d9-13f5-5e46-61da75e2eb6a@xk2c.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <816f3f14-f4d9-13f5-5e46-61da75e2eb6a@xk2c.de> User-Agent: NeoMutt/20171215 2018-10-09 10:00:14 +0200, TS: [...] > % prv() { print -l "${(t)${(P)1}} ${1}=${(P)1}" ; } > % IMPORTANTVAR=foo > % prv IMPORTANTVAR > scalar IMPORTANTVAR=foo > % readonly IMPORTANTVAR [...] > % importantvar=(buuz) > % prv IMPORTANTVAR > scalar-readonly-tag_local IMPORTANTVAR=buuz > > basically currently the readonly flag is bypasable this way for every var > and therefore mood. Somehow i can't believe this is by design, instead of an > overlook. [...] But no need for that to change the value of a readonly variable. readonly is not a security feature (except maybe for specials, but even then that's pointless unless you use the restricted mode (and even then, I'd argue the shell is not the right place to restrict the user, it's better to use OS containing features)). $ readonly VAR=foo $ typeset +r VAR $ VAR=bar $ echo $VAR bar -- Stephane