Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: f() { local -ar path=(/bin); };f gives an error



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