“Bob Hollebeek” <bobh@nscp.upenn.edu> writes:
I have noticed (at least on my systems) a difference between QNX/LINUX tail
results using tail +N
on LINUX tail+2 starts at record 2
on QNX it seems to skip two records and you need to do tail +1 to get the
same result.
Anyone know what’s going on?
We have seen that as well between QNX4 and Linux. We have a build
system that depends on the behaviour of tail +N, and we have to have
separate scripts for QNX and Linux because of this. I’m not sure what
the “standard” behaviour is supposed to be, or if a standard exists at
all. The QNX4 behaviour seems more rational to me, but I’m a C
programmer and zero-based indexing is hard-wired in my brain now.
Cheers,
Andrew
Andrew Thomas, President, Cogent Real-Time Systems Inc.
2430 Meadowpine Boulevard, Suite 105, Mississauga, Ontario, Canada L5N 6S2
Email: andrew@cogent.ca WWW: http://www.cogent.ca