This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug translator/11346] @defined() with '--skip-badvars' doesn't work correctly


------- 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]