~vcs-imports/gawk/master

« back to all changes in this revision

Viewing changes to test/gsubind.awk

  • Committer: Arnold D. Robbins
  • Date: 2016-11-22 18:30:09 UTC
  • mfrom: (408.31.46)
  • Revision ID: git-v1:52715ba9f8510f30368462fee1b1d24bf282b0aa
Merge branch 'master' into feature/cmake

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
BEGIN {
2
2
        f = "foo"
3
 
#       p = @/o/
4
 
p = "o"
 
3
        p = @/o/
5
4
        gsub(p, "q", f)
6
5
        print f
7
 
#       fun = "gsub"
8
 
#       @fun(p, "q", f)
9
 
#       print f
 
6
        fun = "gsub"
 
7
        @fun(p, "q", f)
 
8
        print f
10
9
}