head
Julian Wald <[email protected]> Fri, 06 Dec 2002 10:06:43 +0000
| Newsgroups | gmane.comp.gnu.textutils.bugs |
|---|---|
| Message-ID | <8lt0vucruptto31mrhg0rmacsb3ng691q0@elrond> |
Hi, I think I've found a small bug in "head". If you issue head -n 09 file head: 09: number of lines is so large that it is not representable I assume this is an octal conversion bug (ie 09 is not a valid octal number), but the manual page doesn't mention that octal is a valid input base for the -n parameter. The problem was discovered by me in a script that extracted two digits as a file list count (01-99). The version info is: head (GNU textutils) 2.0 This behaviour is reproducible under Slackware Linux 8.1 and OpenBSD 3.1 (and presumably anything else using the same version of head) Best wishes -Julian