From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1350 invoked by alias); 11 Dec 2017 20:13:59 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: List-Unsubscribe: X-Seq: 23002 Received: (qmail 6125 invoked by uid 1010); 11 Dec 2017 20:13:59 -0000 X-Qmail-Scanner-Diagnostics: from out3-smtp.messagingengine.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(66.111.4.27):SA:0(-1.9/5.0):. Processed in 9.827953 secs); 11 Dec 2017 20:13:59 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.1 X-Envelope-From: d.s@daniel.shahaf.name X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | 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== X-ME-Sender: Date: Mon, 11 Dec 2017 20:13:40 +0000 From: Daniel Shahaf To: zsh-users@zsh.org Subject: "(anon)" is not a useful pointer Message-ID: <20171211201340.r5euitwkr32q6ocv@tarpaulin.shahaf.local2> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: NeoMutt/20170113 (1.7.2) 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. :)