~vcs-imports/gawk/master

« back to all changes in this revision

Viewing changes to test/psx96sub.awk

  • Committer: Arnold D. Robbins
  • Date: 2010-11-18 21:00:31 UTC
  • Revision ID: git-v1:6f3612539c425da2bc1d34db621696e6a273b01c
Bring latest byte code gawk into git. Hurray!

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
BEGIN {
2
 
        text = "here is some text"
3
 
        repl = "<FOO&BAR \\q \\ \\\\ \\& \\\\& \\\\\\&>"
4
 
        printf "orig = \"%s\", repl = \"%s\"\n", text, repl
5
 
        sub(/some/, repl, text)
6
 
        printf "result is \"%s\"\n", text
7
 
}