Re: gawk/getline

2018-08-04 Thread Patrick Dupre
Sorry, Please ignore my previous message. > Hello, > > This is a bit on the side, but the behavior of getline in gawk is a bit > strange. > getline $0 > returns 0 when EOF. > > but > getline "myfile.txt" > never returns 0 > like if there in no EOF > > What am I missing? > > =

gawk/getline

2018-08-04 Thread Patrick Dupre
Hello, This is a bit on the side, but the behavior of getline in gawk is a bit strange. getline $0 returns 0 when EOF. but getline "myfile.txt" never returns 0 like if there in no EOF What am I missing? === Patrick DUPRÉ