This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug translator/4846] New: change $1..$n to character pasting
- From: "fche at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sources dot redhat dot com
- Date: 26 Jul 2007 14:12:45 -0000
- Subject: [Bug translator/4846] New: change $1..$n to character pasting
- Reply-to: sourceware-bugzilla at sourceware dot org
At this time, $1 substitution works by parsing a command line argument as a
number and pasting that number token into the script. @1 turns it into a string
literal token. There is no way to paste plain old characters, to do this:
probe syscall.$1 { }
So, let's change things:
@1 would be redefined/clarified to paste a double-quoted (and internally
\-escaped) sequence of characters; $1 would be redefined to paste the command
line arguments verbatim. In each case, these would paste characters right
into the lexer input stream. (Numeric parsing for $N would be left to the
ordinary tokenizer.)
Existing scripts that use $1/@1 should actually be unaffected by this.
--
Summary: change $1..$n to character pasting
Product: systemtap
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: translator
AssignedTo: systemtap at sources dot redhat dot com
ReportedBy: fche at redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=4846
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.