diff options
author | Elliott Hughes <enh@google.com> | 2022-03-07 11:02:42 -0800 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2022-03-07 11:02:42 -0800 |
commit | ea3b9561d0b9062b810909e2bea0ce5980e6974f (patch) | |
tree | 2f0c920c523fb8dc557305c9ed0cb31abc75484b /bugs-fixed/getline-corruption.awk | |
parent | 642d525f7abbb5e0ddfd5b95293b888ef7170350 (diff) | |
parent | 075624a72ab15649f255a3a1dabfd7cb7766a7d7 (diff) | |
download | one-true-awk-ea3b9561d0b9062b810909e2bea0ce5980e6974f.tar.gz |
Upgrade one-true-awk to 075624a72ab15649f255a3a1dabfd7cb7766a7d7
Test: make
Change-Id: If1f2f37217a21818e7e3e159f5522c24e1cda09d
Diffstat (limited to 'bugs-fixed/getline-corruption.awk')
-rw-r--r-- | bugs-fixed/getline-corruption.awk | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bugs-fixed/getline-corruption.awk b/bugs-fixed/getline-corruption.awk new file mode 100644 index 0000000..461e551 --- /dev/null +++ b/bugs-fixed/getline-corruption.awk @@ -0,0 +1,5 @@ +BEGIN { + getline l + getline l + print (s=substr(l,1,10)) " len=" length(s) +} |