GNU bug report logs -
#7424
Tail -n doesn't work on Red-Hat Linux 5.5
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 7424 in the body.
You can then email your comments to 7424 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
owner <at> debbugs.gnu.org, bug-coreutils <at> gnu.org
:
bug#7424
; Package
coreutils
.
(Wed, 17 Nov 2010 16:14:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
"Parsons, Larry" <LParsons <at> epsilon.com>
:
New bug report received and forwarded. Copy sent to
bug-coreutils <at> gnu.org
.
(Wed, 17 Nov 2010 16:14:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
________________________________
This e-mail and files transmitted with it are confidential, and are intended solely for the use of the individual or entity to whom this e-mail is addressed. If you are not the intended recipient, or the employee or agent responsible to deliver it to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you are not one of the named recipient(s) or otherwise have reason to believe that you received this message in error, please immediately notify sender by e-mail, and destroy the original message. Thank You.
[Message part 2 (text/html, inline)]
Information forwarded
to
owner <at> debbugs.gnu.org, bug-coreutils <at> gnu.org
:
bug#7424
; Package
coreutils
.
(Wed, 17 Nov 2010 18:09:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 7424 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
On 11/17/2010 07:55 AM, Parsons, Larry wrote:
[not much]
> ________________________________
> This e-mail and files transmitted with it are confidential,
In general, it is considered poor netiquette to send an email to a
publicly archived list with a disclaimer that cannot be enforced.
Furthermore, when you don't have any meaningful text other than your
subject line, without giving any indication that you intended your
subject line to be the body of the message, it creates a rather high
spam score that makes your message more likely to be discarded.
You didn't describe "doesn't work" very well for use to diagnose your
problem. Listing an actual session of what you typed, what you got, and
what you expected, would go a long way to making this a more meaningful
bug report. But my ESP senses are working overtime today, so I'm going
to guess:
http://www.gnu.org/software/coreutils/faq/#Old-tail-plus-N-syntax-now-fails
You're probably trying to do 'tail +1 file', when you should instead be
doing 'tail -n +1 file' (not quite the tail -n you mentioned in your
subject line).
--
Eric Blake eblake <at> redhat.com +1-801-349-2682
Libvirt virtualization library http://libvirt.org
[signature.asc (application/pgp-signature, attachment)]
Information forwarded
to
owner <at> debbugs.gnu.org, bug-coreutils <at> gnu.org
:
bug#7424
; Package
coreutils
.
(Wed, 17 Nov 2010 19:00:03 GMT)
Full text and
rfc822 format available.
Message #11 received at 7424 <at> debbugs.gnu.org (full text, mbox):
Eric, All,
I just went to another box and entered in the command that you said shouldn't work. It works just the way you said it shouldn't. Oh, and guess what the help page is identical. Oh, and guess what I have never sent an email to this address before, and I didn't realize it was a public forum. However I did copy everyone you did.
So in my way of thinking about it, it was either wrong then or now. Please feel free to repond and teach me about netiquette while you just lack any kind of etiquette. Have a nice day.
$ tail --help
Usage: tail [OPTION]... [FILE]...
Print the last 10 lines of each FILE to standard output.
With more than one FILE, precede each with a header giving the file name.
With no FILE, or when FILE is -, read standard input.
Mandatory arguments to long options are mandatory for short options too.
--retry keep trying to open a file even if it is
inaccessible when tail starts or if it becomes
inaccessible later -- useful only with -f
-c, --bytes=N output the last N bytes
-f, --follow[={name|descriptor}]
output appended data as the file grows;
-f, --follow, and --follow=descriptor are
equivalent
-F same as --follow=name --retry
-n, --lines=N output the last N lines, instead of the last 10
--max-unchanged-stats=N
with --follow=name, reopen a FILE which has not
changed size after N (default 5) iterations
to see if it has been unlinked or renamed
(this is the usual case of rotated log files)
--pid=PID with -f, terminate after process ID, PID dies
-q, --quiet, --silent never output headers giving file names
-s, --sleep-interval=S with -f, sleep for approximately S seconds
(default 1.0) between iterations.
-v, --verbose always output headers giving file names
--help display this help and exit
--version output version information and exit
If the first character of N (the number of bytes or lines) is a `+',
print beginning with the Nth item from the start of each file, otherwise,
print the last N items in the file. N may have a multiplier suffix:
b 512, k 1024, m 1024*1024.
With --follow (-f), tail defaults to following the file descriptor, which
means that even if a tail'ed file is renamed, tail will continue to track
its end. This default behavior is not desirable when you really want to
track the actual name of the file, not the file descriptor (e.g., log
rotation). Use --follow=name in that case. That causes tail to track the
named file by reopening it periodically to see if it has been removed and
recreated by some other program.
Report bugs to <bug-coreutils <at> gnu.org>.
$ cat /proc/version
Linux version 2.6.9-78.0.22.ELsmp (mockbuild <at> ls20-bc2-13.build.redhat.com) (gcc version 3.4.6 20060404 (Red Hat 3.4.6-10)) #1 SMP Fri Apr 24 12:48:19 EDT 2009
-----Original Message-----
From: Eric Blake [mailto:eblake <at> redhat.com]
Sent: Wednesday, November 17, 2010 12:14 PM
To: Parsons, Larry
Cc: 7424 <at> debbugs.gnu.org
Subject: Re: bug#7424: Tail -n doesn't work on Red-Hat Linux 5.5
On 11/17/2010 07:55 AM, Parsons, Larry wrote:
[not much]
> ________________________________
> This e-mail and files transmitted with it are confidential,
In general, it is considered poor netiquette to send an email to a publicly archived list with a disclaimer that cannot be enforced.
Furthermore, when you don't have any meaningful text other than your subject line, without giving any indication that you intended your subject line to be the body of the message, it creates a rather high spam score that makes your message more likely to be discarded.
You didn't describe "doesn't work" very well for use to diagnose your problem. Listing an actual session of what you typed, what you got, and what you expected, would go a long way to making this a more meaningful bug report. But my ESP senses are working overtime today, so I'm going to guess:
http://www.gnu.org/software/coreutils/faq/#Old-tail-plus-N-syntax-now-fails
You're probably trying to do 'tail +1 file', when you should instead be doing 'tail -n +1 file' (not quite the tail -n you mentioned in your subject line).
--
Eric Blake eblake <at> redhat.com +1-801-349-2682
Libvirt virtualization library http://libvirt.org
This e-mail and files transmitted with it are confidential, and are intended solely for the use of the individual or entity to whom this e-mail is addressed. If you are not the intended recipient, or the employee or agent responsible to deliver it to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you are not one of the named recipient(s) or otherwise have reason to believe that you received this message in error, please immediately notify sender by e-mail, and destroy the original message. Thank You.
Information forwarded
to
owner <at> debbugs.gnu.org, bug-coreutils <at> gnu.org
:
bug#7424
; Package
coreutils
.
(Wed, 17 Nov 2010 19:15:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 7424 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
[as another netiquette tip: please don't top-post on technical lists]
On 11/17/2010 12:03 PM, Parsons, Larry wrote:
> Eric, All,
>
> I just went to another box and entered in the command that you said shouldn't work. It works just the way you said it shouldn't.
Please, so that we can have some idea of what you are seeing, include an
example of what you typed, what happened, and what you wanted to have
happen. You _still_ haven't told us what you think is a bug, so we
_still_ don't have any idea how to help you, other than to point you to
FAQ that may or may not be relevant to your situation.
We do appreciate the time you've taken to try and report something, but
there are some steps you could take to make your request go a lot further:
http://www.catb.org/~esr/faqs/smart-questions.html
http://www.chiark.greenend.org.uk/~sgtatham/bugs.html
Here's an example report that would qualify as more informative:
"I reduced things down to this simple testcase:
$ printf 'a\nb\n' | tail -1
b
but since I didn't type the POSIX 2008 spelling of:
tail -n -1
I was surprised that it did the same thing by printing the last line
instead of being a syntax error"
> and I didn't realize it was a public forum.
Most bug reporting emails are publicly archived; and it's always safer
to start from that assumption.
> However I did copy everyone you did.
Ah, but my email didn't have an unenforceable disclaimer tacked on by my
employer.
> Please feel free to repond and teach me about netiquette while you just lack any kind of etiquette.
My original reply was terse to match the terseness of your original
report. I'm sorry if my reply unintentionally came across as harsh or
demeaning; that certainly was not my intent, and the text-only medium of
email lacks emotion and tone of voice that convey the rest of the
meaning behind a spoken message. Whether or not I'm always successful
at my attempts to be polite may be another matter, but you may feel free
to take that up with me off-list if you have suggestions for how I could
improve in my interpersonal skills.
--
Eric Blake eblake <at> redhat.com +1-801-349-2682
Libvirt virtualization library http://libvirt.org
[signature.asc (application/pgp-signature, attachment)]
Information forwarded
to
owner <at> debbugs.gnu.org, bug-coreutils <at> gnu.org
:
bug#7424
; Package
coreutils
.
(Fri, 22 Jul 2011 22:20:02 GMT)
Full text and
rfc822 format available.
Message #17 received at 7424 <at> debbugs.gnu.org (full text, mbox):
tags 7424 + notabug
close 7424
thanks
Eric Blake wrote:
> [as another netiquette tip: please don't top-post on technical lists]
>
> On 11/17/2010 12:03 PM, Parsons, Larry wrote:
>> Eric, All,
>>
>> I just went to another box and entered in the command that you said
>> shouldn't work. It works just the way you said it shouldn't.
>
> Please, so that we can have some idea of what you are seeing, include an
> example of what you typed, what happened, and what you wanted to have
> happen. You _still_ haven't told us what you think is a bug, so we
> _still_ don't have any idea how to help you, other than to point you to
> FAQ that may or may not be relevant to your situation.
>
> We do appreciate the time you've taken to try and report something, but
> there are some steps you could take to make your request go a lot further:
> http://www.catb.org/~esr/faqs/smart-questions.html
> http://www.chiark.greenend.org.uk/~sgtatham/bugs.html
>
> Here's an example report that would qualify as more informative:
>
> "I reduced things down to this simple testcase:
>
> $ printf 'a\nb\n' | tail -1
> b
>
> but since I didn't type the POSIX 2008 spelling of:
>
> tail -n -1
>
> I was surprised that it did the same thing by printing the last line
> instead of being a syntax error"
>
>> and I didn't realize it was a public forum.
>
> Most bug reporting emails are publicly archived; and it's always safer
> to start from that assumption.
>
>> However I did copy everyone you did.
>
> Ah, but my email didn't have an unenforceable disclaimer tacked on by my
> employer.
>
>> Please feel free to repond and teach me about netiquette while you
>> just lack any kind of etiquette.
>
> My original reply was terse to match the terseness of your original
> report. I'm sorry if my reply unintentionally came across as harsh or
> demeaning; that certainly was not my intent, and the text-only medium of
> email lacks emotion and tone of voice that convey the rest of the
> meaning behind a spoken message. Whether or not I'm always successful
> at my attempts to be polite may be another matter, but you may feel free
> to take that up with me off-list if you have suggestions for how I could
> improve in my interpersonal skills.
Due to the lack of actual details, I assume this wasn't a real problem.
Larry, if you can provide evidence of a problem, please simply reply
and we'll investigate.
In the mean time, I'm closing this as "not a bug".
Added tag(s) notabug.
Request was from
Jim Meyering <jim <at> meyering.net>
to
control <at> debbugs.gnu.org
.
(Tue, 13 Sep 2011 14:39:02 GMT)
Full text and
rfc822 format available.
bug closed, send any further explanations to
7424 <at> debbugs.gnu.org and "Parsons, Larry" <LParsons <at> epsilon.com>
Request was from
Jim Meyering <jim <at> meyering.net>
to
control <at> debbugs.gnu.org
.
(Tue, 13 Sep 2011 14:39:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Wed, 12 Oct 2011 11:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 13 years and 256 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.