From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14750 invoked by alias); 13 May 2015 17:50:56 -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: 35111 Received: (qmail 22496 invoked from network); 13 May 2015 17:50:54 -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,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:from:message-id:date:in-reply-to:comments :references:to:subject:mime-version:content-type; bh=ZC0fuOmx/INyakq+r/XCK481SVROIPDNl/Opj/lfOZc=; b=bgINs184i2HnkbVCyIexU5GqSoEv3xgHQ6TcRmMb70tsMjMzo6eRD+QkPZ9peX6uZ9 J0Qoh6QGeiwPTJ/H+IFsoERLHEKil4e8sqMsumrDmGSTc68WSWtxIvt2gXJOmnm6FCOp JrPeP0NQUEGw+vPdw5o9Tw2nUK27DpaWb7w2ZWUvIQQrPx+pigecgDrZV4S8mEtc/hpx Ra9yE5VI6+0Ko4ZT7Geqvj8I47ylOfWt2rH+MBHaluBodkGY2hfPqouft1zxZPTGnYYz cQDDCl1G9PD8nJjMfYRJZkkKtK7Pp/suIfA+bzCPh43WGQ8Dp390rHo1iVBJq1ZrSrDi 3pwA== X-Gm-Message-State: ALoCoQlzVhM79yDCeNvHkRz1/2MP8I4R6iUqP7go2j7FmWUbht7PgCwDSh0fMStSSTip6c368ZSy X-Received: by 10.202.221.86 with SMTP id u83mr23436oig.127.1431539452931; Wed, 13 May 2015 10:50:52 -0700 (PDT) From: Bart Schaefer Message-Id: <150513105050.ZM28218@torch.brasslantern.com> Date: Wed, 13 May 2015 10:50:50 -0700 In-Reply-To: <20150513173839.06cc8988@pwslap01u.europe.root.pri> Comments: In reply to Peter Stephenson "Re: Failure of "typeset" and exit status" (May 13, 5:38pm) References: <150511194320.ZM12928@torch.brasslantern.com> <150512215919.ZM13985@torch.brasslantern.com> <20150513093945.749366aa@pwslap01u.europe.root.pri> <150513084827.ZM15168@torch.brasslantern.com> <20150513173839.06cc8988@pwslap01u.europe.root.pri> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-workers@zsh.org Subject: Re: Failure of "typeset" and exit status MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On May 13, 5:38pm, Peter Stephenson wrote: } Subject: Re: Failure of "typeset" and exit status } } On Wed, 13 May 2015 08:48:27 -0700 } Bart Schaefer wrote: } > It appears that the real problem is that UID is typed as an integer, } > so "local UID" implicitly assigns zero. } } How about this? Except that you misspelt "initialise" in the comment, I think this is just right. } What about non-integer restricted variables? They seem to be less } problematic. The only one that comes to mind is USERNAME, which also attempts to change UID, but it's already sanitized because it checks for a valid password file entry before doing anything. The problems with localizing PATH-flavored variables are already known.