emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-bug-tracker] bug#7753: closed (Bug in tail command)


From: GNU bug Tracking System
Subject: [Emacs-bug-tracker] bug#7753: closed (Bug in tail command)
Date: Wed, 29 Dec 2010 07:42:02 +0000

Your message dated Tue, 28 Dec 2010 23:48:12 -0800
with message-id <address@hidden>
and subject line Re: bug#7753: Bug in tail command
has caused the GNU bug report #7753,
regarding Bug in tail command
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
7753: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7753
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: Bug in tail command Date: Wed, 29 Dec 2010 07:56:31 +0100

Hello maintainer,

 

running    tail  +2   on an Ubuntu Box I get the following error:

df | tail +2

tail: cannot open `+2' for reading: No such file or directory

 

df | tail –lines +2 works OK

 

I support HP-UX, Redhat and Ubuntu systems and unfortunately the –lines option does not work on my legacy HP-UX systems.

 

The man page for tail says

       -n, --lines=N

              output the last N lines, instead of the last 10; or  use  +N  to

              output lines starting with the Nth

 

Here is the version of coreutils which I am running:

               

#dpkg -s coreutils

Package: coreutils

Essential: yes

Status: install ok installed

Priority: required

Section: utils

Installed-Size: 12988

Maintainer: Ubuntu Developers <address@hidden>

Architecture: amd64

Version: 7.4-2ubuntu3

Replaces: mktemp

Pre-Depends: libacl1 (>= 2.2.11-1), libattr1 (>= 2.4.41-1), libc6 (>= 2.11), libselinux1 (>= 1.32)

 

regards

  Peter



The information contained in this message may be confidential and legally protected under applicable law. The message is intended solely for the addressee(s). If you are not the intended recipient, you are hereby notified that any use, forwarding, dissemination, or reproduction of this message is strictly prohibited and may be unlawful. If you are not the intended recipient, please contact the sender by return e-mail and destroy all copies of the original message.

--- End Message ---
--- Begin Message --- Subject: Re: bug#7753: Bug in tail command Date: Tue, 28 Dec 2010 23:48:12 -0800 User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101208 Thunderbird/3.1.7
On 12/28/2010 10:56 PM, Kielbasiewicz, Peter wrote:
> df | tail -lines +2 works OK
> 
> I support HP-UX, Redhat and Ubuntu systems and unfortunately
> the -lines option does not work on my legacy HP-UX systems.

This should work, on all systems conforming to POSIX
(which surely HP-UX does):

df | tail -n +2

"tail +2" isn't portable.


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]