xref: /aosp_15_r20/external/one-true-awk/bugs-fixed/getline-corruption.awk (revision 9a7741de182b2776d7b30d6355f2585c0780a51b)
1*9a7741deSElliott HughesBEGIN {
2*9a7741deSElliott Hughes	getline l
3*9a7741deSElliott Hughes	getline l
4*9a7741deSElliott Hughes	print (s=substr(l,1,10)) " len=" length(s)
5*9a7741deSElliott Hughes}
6