Jack Brown wrote: > Bruce Dubbs wrote: > >> I just ran into a minor problem on a new install. I was installing the >> Java runtime and the included script had: >> >> tail +122 ... >> >> I had to change it to tail -n +122 ... >> >> I thought this POSIX behavior was reverted in the current coreutils, but >> apparently not. Do we need to add a patch? >> >> -- Bruce > > > Out of curiousity, does "tail -122" work (ie. "-" instead of "+")
For a file, test, I get: [EMAIL PROTECTED] tail -n+3 test 3 4 5 6 7 8 9 10 [EMAIL PROTECTED] tail +3 test tail: cannot open `+3' for reading: No such file or directory ==> test <== 1 2 3 4 5 6 7 8 9 10 [EMAIL PROTECTED] tail -3 test 8 9 10 [EMAIL PROTECTED] tail -n3 test 8 9 10 [EMAIL PROTECTED] >From the info file: On older systems, the leading `-' can be replaced by `+' in the obsolete option syntax with the same meaning as in counts, and obsolete usage overrides normal usage when the two conflict. This obsolete behavior can be enabled or disabled with the `_POSIX2_VERSION' environment variable (*note Standards conformance::), but portable scripts should avoid commands whose behavior depends on this variable. For example, use `tail -- - main.c' or `tail main.c' rather than the ambiguous `tail - main.c', `tail -c4' or `tail -c 10 4' rather than the ambiguous `tail -c 4', and `tail ./+4' or `tail -n +4' rather than the ambiguous `tail +4'. Perhaps this isn't an LFS problem, but should be addressed in the BLFS install of the FOP instructions. -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page