Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Truncate $functions
- X-seq: zsh-users 21296
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: Re: Truncate $functions
- Date: Mon, 15 Feb 2016 11:43:17 -0800
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version:content-type; bh=pW3FRyL0mJ0kDQ3CeDNIarkWEa3LPB+UcuhW7AYyMYM=; b=h7fu7iy1sVK4FlmucNdXMqaKlaZ7jCl+8tPd4TDJzo7kdK+PzEIbjy8jeFNuz5Lagn V2Uz+06iAk8Omhog/ahyQs7Ws2NOJlor2PfViSAuxlPg9QP1bJU6VePArYxQYTLItEcJ 0W4eJUmoC851ipPdvrviESWTmC6HCoOzLcOn+OMHOoL8g70gxJitbmGbjee7PVB7pAEC tdWPtfOxorFKnUJE7hKL2/1EgF8m6ih+yp3dkYSGl1BPDbFgu03evJRzE74mFc3oajEy E3oxoPPPEvmCa0A2sjxYkh6yUbMl8hQYTEWBA4o6D469pAii/XReg+pXHeXba/9ITSh4 3Mmw==
- In-reply-to: <CAKc7PVAF9zYtWeyZJccet=-_Dbae3=WtkG-wLxjjX2Btt_VGdg@mail.gmail.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CAKc7PVBFD0h6ovynoTCkBmR3Z+cfQv_bs2-AOfc_4sfDAwP7ow@mail.gmail.com> <160215091116.ZM27442@torch.brasslantern.com> <CAKc7PVAF9zYtWeyZJccet=-_Dbae3=WtkG-wLxjjX2Btt_VGdg@mail.gmail.com>
On Feb 15, 8:31pm, Sebastian Gniazdowski wrote:
}
} Side note, unset functions[...] has
} problems with entries like ops+[, but unfunction doesn't.
That's because unfunction doesn't have to parse the function name as an
array subscript.
Git commit 95663e9 should have taken care of the issue with unset. You
just have to use
x='ops+['
unset "functions[${(b)x}]"
Messages sorted by:
Reverse Date,
Date,
Thread,
Author