Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
"(anon)" is not a useful pointer
- X-seq: zsh-users 23002
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: "(anon)" is not a useful pointer
- Date: Mon, 11 Dec 2017 20:13:40 +0000
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= daniel.shahaf.name; h=content-type:date:from:message-id :mime-version:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; bh=Buj8HSLwijePJzcRM5HpUY0bpkxN/5x9PtiEajbehNU=; b=X15P9+X7 kEvPzn5mzPeOTnO4AFnSYL/CToGA1Cj3cxzwIjMDaejcsl+pdfqUDMVZg3kkOLBs 1K/027ZC4huMECVekzlb0lKP2BjYj/WYNsR7bXXqnr1dyzW59fdaRheUj0q+RbJA 8srpCe3Eu4vQkbL/lqMUhYNQaB1lAsUCYS7f9ucDGvfd9bBr8iUHU3G2f5Xz132b eMlURztgvXoPCcp7AADe/yJj43d/WD23FqkylUkMKqlY+9gM1kTs9I5aJ6YMC6Aj 1ih5rvb+3NqTsNnlkkuA4Gkn08qmeKs36buri0k3Kd7HHOqrUrJk+9KGqjXl5rUQ P0uVCrnZmhrCoA==
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=Buj8HSLwijePJzcRM5HpUY0bpkxN/5x9PtiEajbehNU=; b=F/YWWJny V2/xasE9T1mqSx5ylnNdjQt7co3O6dP/bba1q2RylYdnIajqf8hEXMTYldTzyfhp z7jmN684E4yTOhgUUA100OQRwuNi+vY+kVan0vFESIcv6MChkFGvRW2VjUGpo0X4 B9L2saKxJHQ6pdvua7QIiJlSIzjU7SxStg5YzRNar3SPHy1DLn9smTLR9SWCJ6rx jmi4Ci/unlIeQujlur8MXz/MUMCzjLRY2j+h1INTOaGPkdfoBvuxtYSBZATiPqPY ywgdcjXR29+9ZJvevoYOVKzA7yL8dozSLo13+RlP5FvnkHno0g1GszomKNskZPY7 NrullxRZpdE+9w==
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- List-unsubscribe: <mailto:zsh-users-unsubscribe@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
Another minor issue.
Consider:
[[[
% cat > foo
f() {
() {
: *(syntaxerror)
}
}
% source foo
% f
(anon):1: unknown file attribute: y
zsh: exit 1
]]]
To a user, that "(anon)" isn't terribly helpful; it gives no clue as to
the location of the error. Perhaps the name of the containing named
function could be prefixed to the error message, e.g.,
f: (anon):1: unknown file attribute: y
?
Cheers,
Daniel
P.S. "(anon):1" isn't helpful to the developer of f if f contains more
than one anonymous function (either nested, f() { () { () { : } } }, or
siblings, f() { () {:}; () {:}; }). Ideas about that welcome. :)
Messages sorted by:
Reverse Date,
Date,
Thread,
Author