public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [Bug translator/4846] New: change $1..$n to character pasting
@ 2007-07-26 17:12 fche at redhat dot com
  2007-08-08  6:06 ` [Bug translator/4846] " fche at redhat dot com
  0 siblings, 1 reply; 2+ messages in thread
From: fche at redhat dot com @ 2007-07-26 17:12 UTC (permalink / raw)
  To: systemtap

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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug translator/4846] change $1..$n to character pasting
  2007-07-26 17:12 [Bug translator/4846] New: change $1..$n to character pasting fche at redhat dot com
@ 2007-08-08  6:06 ` fche at redhat dot com
  0 siblings, 0 replies; 2+ messages in thread
From: fche at redhat dot com @ 2007-08-08  6:06 UTC (permalink / raw)
  To: systemtap


------- Additional Comments From fche at redhat dot com  2007-08-08 03:36 -------
patch committed

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-08-08  3:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-07-26 17:12 [Bug translator/4846] New: change $1..$n to character pasting fche at redhat dot com
2007-08-08  6:06 ` [Bug translator/4846] " fche at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).