From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13869 invoked by alias); 10 Dec 2017 23:28:17 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: List-Unsubscribe: X-Seq: 42103 Received: (qmail 13662 invoked by uid 1010); 10 Dec 2017 23:28:17 -0000 X-Qmail-Scanner-Diagnostics: from mail-it0-f44.google.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(209.85.214.44):SA:0(-1.9/5.0):. Processed in 9.312801 secs); 10 Dec 2017 23:28:17 -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,RCVD_IN_DNSWL_NONE, SPF_PASS,T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.1 X-Envelope-From: dana@dana.is X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dana-is.20150623.gappssmtp.com; s=20150623; h=from:content-transfer-encoding:mime-version:subject:message-id:date :to; bh=G0L7BVhBDWJpnpd8dDMG9qLdaLgP18r/jTLNMuqz070=; b=EYGiZ4Fj7N2AIIkWpb04YvrqE0SZga7YboZ1y2jLalPUnIVjwl4YjBj2iYaI2iagPM cDWdjSFSbJOL3lNxlPAsMI1Xj86q9cafuDO6y1RrDBqRK0I54bw39rfVBM5dxogx6LQa 28x/NVufwFgyru2jWRVlmRGxcX6nqnnh0D+xF5URBzPkUXR0oJv04BsQFaVElWrOKE6F 2/OH+vLOCM3gMFoDMeI4D00QyrvXkHSWsWJBQqUhDSHxeaz+v+zAISHVJMPeyi8AXKKl VzhkwKGLObK8YhsbzBRvzyyTmHzN22x74yVLh6S6HvPva8HxAmQD7zJsgkwzWRiwjLEJ HT9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:mime-version :subject:message-id:date:to; bh=G0L7BVhBDWJpnpd8dDMG9qLdaLgP18r/jTLNMuqz070=; b=cB4cbVDr49bmqnWZjvItEwg6XZyhUqGlWOSA9P80nrUU1kyQlUR3fwekDZm7VcY3Gi XpY4SKHKYf5empGXjsSc2OxOhAg1xxu9xdU9k7GIeuItWqq+TTDm0wRhz0rRc09ZvdBj xLGsoiGF7r5hTKVBRmOCZyjeICUY3al2tTIim/vzAoYY4ItDKsR4Xh1z8gzJYK2sAgHq pAb2OZOb8rCfPGpousX/1y6hJTWJHjK05LWyogUZlLM8qOA+z3xf/cDu0ngVo4LCRSo1 b3YhL/lvg2hWhRoKMMDZSwqunOfFkrn/SGRtgU39/7yU0h5oA7VFYgkKAm5MfbLHBTkl n9Mw== X-Gm-Message-State: AJaThX5ucCWXedT6l/mPJYIXnlHBah7ft8H3nd20lK06+6wmfxPVvDJa THl0JMsjRvIDo5QUkFMgOSe49tLQyZM= X-Google-Smtp-Source: AGs4zMbi6Ap+Jduo9bUzWNspwhYgyo5PuT9FGHWOfj+sB7Yrm0WHs3GUTpAi6bBiGb6zi9QUjdu6Fw== X-Received: by 10.107.55.138 with SMTP id e132mr55013042ioa.82.1512948484806; Sun, 10 Dec 2017 15:28:04 -0800 (PST) From: dana Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: [BUG] Anonymous functions cause funcfiletrace to produce function-relative line numbers Message-Id: Date: Sun, 10 Dec 2017 17:28:03 -0600 To: zsh-workers@zsh.org X-Mailer: Apple Mail (2.3273) Hello again. Sorry for spamming the list, i can't seem to help myself. I was experimenting with line-number tracing today and i found that = anonymous functions have an undesirable effect on funcfiletrace: % cat -n tracetest.zsh 1 # 2 foo() { 3 # 4 # 5 # 6 # 7 # 8 () { () { print -rC2 -- $functrace $funcfiletrace } } 9 } 10 foo % zsh tracetest.zsh (anon):0 tracetest.zsh:6 foo:6 tracetest.zsh:8 tracetest.zsh:10 tracetest.zsh:10 Note that the top call from (anon) is listed as tracetest.zsh:6 = (actually the relative line number within the function foo) rather than the expected tracetest.zsh:8 (the absolute line number within the file). I looked at the parameter module very briefly but nothing stood out = immediately. Probably will be obvious to someone else why it does that. dana