projects
/
unix-history
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6b058b3
)
BSD 4_4 development
author
CSRG
<csrg@ucbvax.Berkeley.EDU>
Fri, 30 Nov 1979 02:05:27 +0000
(18:05 -0800)
committer
CSRG
<csrg@ucbvax.Berkeley.EDU>
Fri, 30 Nov 1979 02:05:27 +0000
(18:05 -0800)
Work on file usr/src/old/awk/test/t.null0
Synthesized-from: CSRG/cd3/4.4
usr/src/old/awk/test/t.null0
[new file with mode: 0644]
patch
|
blob
diff --git a/usr/src/old/awk/test/t.null0
b/usr/src/old/awk/test/t.null0
new file mode 100644
(file)
index 0000000..
f6870f4
--- /dev/null
+++ b/
usr/src/old/awk/test/t.null0
@@ -0,0
+1,15
@@
+BEGIN { FS = ":" }
+{ if (a) print "a", a
+ if (b == 0) print "b", b
+ if ( c == "0") print "c", c
+ if (d == "") print "d", d
+ if (e == 1-1) print "e", e
+}
+$1 == 0 {print "$1 = 0"}
+$1 == "0" {print "$1 = quoted 0"}
+$1 == "" {print "$1 = null string"}
+$5 == 0 {print "$5 = 0"}
+$5 == "0" {print "$5 = quoted 0"}
+$5 == "" {print "$5 = null string"}
+$1 == $3 {print "$1 = $3"}
+$5 == $6 {print "$5 = $6"}