Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Bug report: segfault when pasting (function and alias names collide)
- X-seq: zsh-workers 40278
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: Victor Volle <victor.volle@xxxxxxxxxxxxxxxxx>
- Subject: Re: Bug report: segfault when pasting (function and alias names collide)
- Date: Fri, 6 Jan 2017 02:29:07 +0000
- Cc: zsh-workers@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= daniel.shahaf.name; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc:x-sasl-enc; s= mesmtp; bh=RlOZUitiOeRVs05GK9nYO9v6IPM=; b=UopLnnogY5CpqB7HhVrEK t7KCUbzUYWVznTKblzE1/Cy39Wl9Lg+Pp4Mv11BZV32IRxS8JfqCqactzIdj542m nBXAEF+KtO9zRnzR5ofkm5q6QRWqp/oBGXJgQIRPKMGbo61CrIEb1d/Fc1S04ZIy mMFX7TmKkN4ys8i6Ei1V4g=
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc:x-sasl-enc; s= smtpout; bh=RlOZUitiOeRVs05GK9nYO9v6IPM=; b=W74q+ZXv7VpBm6FUF8SG qzwydo8EVMOtchsviDZUKAnjpD+fVzZMjdFX/zKaQwVII0pQLM+ophNjdYkaT+XB PJbEOdR/vzcd8zuFDPRmZ3CpnieAkeVVbhYQ+W45mFSaRyV7dxTQbFKVwK8K+p1j OX+AN/hD3H3SVQSwnG/q3wg=
- In-reply-to: <CAA9FWwOMDftD+nfj=Thw-SO9ZpHD-eg4kOZYTzzTHDRcTeDqxw@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>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <CAA9FWwOMDftD+nfj=Thw-SO9ZpHD-eg4kOZYTzzTHDRcTeDqxw@mail.gmail.com>
Victor Volle wrote on Thu, Jan 05, 2017 at 17:21:03 +0100:
> I think this may already have been reported in 2010:
> https://www.zsh.org/mla/workers/2010/msg00521.html
> but it does not seem to be fixed.
The part with function and alias has not been "fixed" because it's not
a bug. To define a function without interpreting aliases in the
function name, use this syntax:
function f {
⋮
}
> If the redefinition is problematic, would it be possible to trigger an
> error, when the function
> is defined? A segfault when pasting seems to be quite bad.
All segfaults are bug, but how do you reproduce this one? I did:
$ zsh -f
% history() {
⋮ copied the function body from your mail
}
% <paste>
and it did not segfault. Can you provide a minimal reproduction script
starting from `zsh -f`? (and without third party modules, if at all
possible)
Thanks,
Daniel
Messages sorted by:
Reverse Date,
Date,
Thread,
Author