This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug translator/11346] @defined() with '--skip-badvars' doesn't work correctly
- From: "jistone at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sources dot redhat dot com
- Date: 3 Mar 2010 22:31:36 -0000
- Subject: [Bug translator/11346] @defined() with '--skip-badvars' doesn't work correctly
- References: <20100303205742.11346.dsmith@redhat.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From jistone at redhat dot com 2010-03-03 22:31 -------
(In reply to comment #0)
> Notice how the line:
> path = user_string(@defined($foo) ? $foo : $pathname)
> got replaced by:
> (path) = (user_string(0))
>
> This replacement is wrong.
Well, it's "correct" in that $foo is "defined" to 0 when it doesn't exist -- but
I agree this fails to DWIM. I think we can just bypass the badvar replacement
while inside a @defined traversal.
--
http://sourceware.org/bugzilla/show_bug.cgi?id=11346
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.