Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: f() { local -ar path=(/bin); };f gives an error
- X-seq: zsh-workers 42056
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: "zsh-workers@xxxxxxx" <zsh-workers@xxxxxxx>
- Subject: Re: f() { local -ar path=(/bin); };f gives an error
- Date: Mon, 27 Nov 2017 13:35:08 -0800
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=/a2XhCIl7TqAIfl3CUeL05QCq7hxpULlr/5rs5F8j+E=; b=uFExRxQGpUeyCFGGKfiYw7ygCSVGkVqLf2txm4vFkq4sQTFQZm/sCc1lqT2ENnAfn9 7xPv8+g6gQ7vXw8xkHTyxnh8OWW4Vo+VhmC0lIarV7+fFmaCu2mgpTu9xsz5BLZGiEtp vYt74AOBwEOGTpX+XerlNefi7kz3RPULFsRYAGpDXdWvCVOluv8D/9ZnWN1/DywA8v6G JW1Rc0H1Su6Oe1V5hXk8VkWMDMFtnHUKPOffMaPW2j0G1NvFbpWvGk2MreCqihNq6DOI R/58XzoS47FH2P/gTO449QnAiVFSVptrd8w4U4T1Ldie/kD7+ecVXkFMieCQO1vM+XRD +taw==
- In-reply-to: <CAH+w=7ZrxOwbY1iWCS5OcpNkoAOhQnYMCQX47+M3=yF9MNLgkg@mail.gmail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <20171126232101.GA8393@chaz.gmail.com> <7a5807b1-0c5e-8134-a651-83e8b3df4d82@gmx.com> <20171127201721.GA1897@chaz.gmail.com> <ff7d1972-7eec-2f0c-97bd-d1e958ae3cdd@gmx.com> <CAH+w=7ZrxOwbY1iWCS5OcpNkoAOhQnYMCQX47+M3=yF9MNLgkg@mail.gmail.com>
On Mon, Nov 27, 2017 at 1:34 PM, Bart Schaefer
<schaefer@xxxxxxxxxxxxxxxx> wrote:
>
> f() { path=(/bin); local -r path PATH; ... } # achieves the desired effect
Of course there's a missing "local" before the first assignment there.
Sorry about that.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author