[Bug translator/11346] @defined() with '--skip-badvars' doesn't work correctly
jistone at redhat dot com
sourceware-bugzilla@sourceware.org
Wed Mar 3 22:31:00 GMT 2010
------- 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.
More information about the Systemtap
mailing list