Chet Ramey: > > printf("%ld\n", (long) st->st_size); > > > > which potentially truncate values. > > Pretty much all the systems bash runs on these days have 64-bit longs. > How big a file do you have? But the fix is the same as above.
32-bit platforms (IA-32, ARMv7) are still around. And BSD has had 64-bit off_t on 32-bit architectures for about a quarter century. -- Christian "naddy" Weisgerber na...@mips.inka.de