This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug translator/13371] New: parser doubles-up incoming \ characters in string literals
- From: "fche at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sourceware dot org
- Date: Wed, 02 Nov 2011 00:49:53 +0000
- Subject: [Bug translator/13371] New: parser doubles-up incoming \ characters in string literals
- Auto-submitted: auto-generated
http://sourceware.org/bugzilla/show_bug.cgi?id=13371
Bug #: 13371
Summary: parser doubles-up incoming \ characters in string
literals
Product: systemtap
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: translator
AssignedTo: systemtap@sourceware.org
ReportedBy: fche@redhat.com
Classification: Unclassified
During early parse, string literals containing \ characters are
doubled, so that later at translate time, the C compiler will turn them
back into normal \'s. Since we sometimes process the contents of these
strings within the translator, we need the literals to be unmolested with
this sort of doubling, and instead do that only at code-emission time.
% touch 'foo*bar'
% stap -v -p2 -e 'probe process("foo\\*bar").function("main") {}'
[...]
semantic error: glob foo\\*bar error (3) while resolving probe point
process("foo\\*bar").function("main")
It should have successfully matched the 'foo*bar' program without globbing.
(The \\ on the stap command line was for escaping the shell's parser.
With only a single \, the shell passes * to systemtap.)
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.