From unknown Mon Aug 18 14:13:58 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#7753 <7753@debbugs.gnu.org> To: bug#7753 <7753@debbugs.gnu.org> Subject: Status: Bug in tail command Reply-To: bug#7753 <7753@debbugs.gnu.org> Date: Mon, 18 Aug 2025 21:13:58 +0000 retitle 7753 Bug in tail command reassign 7753 coreutils submitter 7753 "Kielbasiewicz, Peter" severity 7753 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Dec 29 01:49:53 2010 Received: (at submit) by debbugs.gnu.org; 29 Dec 2010 06:49:53 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PXpr6-0000Sm-IU for submit@debbugs.gnu.org; Wed, 29 Dec 2010 01:49:53 -0500 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PXpr4-0000SZ-0R for submit@debbugs.gnu.org; Wed, 29 Dec 2010 01:49:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PXpxg-0002I4-VG for submit@debbugs.gnu.org; Wed, 29 Dec 2010 01:56:42 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.1 required=5.0 tests=BAYES_00,HTML_MESSAGE, RCVD_IN_DNSWL_LOW, RECEIVED_FROM_WINDOWS_HOST autolearn=no version=3.3.1 Received: from lists.gnu.org ([199.232.76.165]:43045) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PXpxg-0002I0-Rb for submit@debbugs.gnu.org; Wed, 29 Dec 2010 01:56:40 -0500 Received: from [140.186.70.92] (port=51580 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PXpxf-0008NW-CL for bug-coreutils@gnu.org; Wed, 29 Dec 2010 01:56:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PXpxd-0002Hn-KB for bug-coreutils@gnu.org; Wed, 29 Dec 2010 01:56:39 -0500 Received: from am1ehsobe004.messaging.microsoft.com ([213.199.154.207]:16530 helo=AM1EHSOBE004.bigfish.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PXpxd-0002Hf-AC for bug-coreutils@gnu.org; Wed, 29 Dec 2010 01:56:37 -0500 Received: from mail7-am1-R.bigfish.com (10.3.201.250) by AM1EHSOBE004.bigfish.com (10.3.204.24) with Microsoft SMTP Server id 14.1.225.8; Wed, 29 Dec 2010 06:56:33 +0000 Received: from mail7-am1 (localhost.localdomain [127.0.0.1]) by mail7-am1-R.bigfish.com (Postfix) with ESMTP id BF3387401F3 for ; Wed, 29 Dec 2010 06:56:33 +0000 (UTC) X-SpamScore: -18 X-BigFish: VPS-18(zz15d6O9251J217bLzz1202hzz8275bh8275dh186Mz2dh2a8h668h62h) X-Forefront-Antispam-Report: KIP:(null); UIP:(null); IPVD:NLI; H:NLAMSEXE03.connect1.local; RD:smtpx.philips.com; EFVD:NLI Received: from mail7-am1 (localhost.localdomain [127.0.0.1]) by mail7-am1 (MessageSwitch) id 1293605792923946_24509; Wed, 29 Dec 2010 06:56:32 +0000 (UTC) Received: from AM1EHSMHS005.bigfish.com (unknown [10.3.201.241]) by mail7-am1.bigfish.com (Postfix) with ESMTP id D593F53004F for ; Wed, 29 Dec 2010 06:56:32 +0000 (UTC) Received: from NLAMSEXE03.connect1.local (168.87.56.20) by AM1EHSMHS005.bigfish.com (10.3.207.105) with Microsoft SMTP Server (TLS) id 14.1.225.8; Wed, 29 Dec 2010 06:56:32 +0000 Received: from NLHILEXH02.connect1.local (172.16.153.92) by connect1.philips.com (172.16.156.42) with Microsoft SMTP Server (TLS) id 8.3.106.1; Wed, 29 Dec 2010 07:56:27 +0100 Received: from NLCLUEXM10.connect1.local ([172.16.153.36]) by NLHILEXH02.connect1.local ([172.16.153.92]) with mapi; Wed, 29 Dec 2010 07:56:32 +0100 From: "Kielbasiewicz, Peter" To: "bug-coreutils@gnu.org" Date: Wed, 29 Dec 2010 07:56:31 +0100 Subject: Bug in tail command Thread-Topic: Bug in tail command Thread-Index: AcunJYZTPETFzRG/RZa9gINWW3nSiA== Message-ID: <08037F11EBCBB845B82BBFF9B1D05CD5B7CF562EBF@NLCLUEXM10.connect1.local> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: multipart/alternative; boundary="_000_08037F11EBCBB845B82BBFF9B1D05CD5B7CF562EBFNLCLUEXM10con_" MIME-Version: 1.0 X-OriginatorOrg: philips.com X-detected-operating-system: by eggs.gnu.org: Windows 2000 SP2+, XP SP1+ (seldom 98) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Spam-Score: -6.6 (------) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.6 (------) --_000_08037F11EBCBB845B82BBFF9B1D05CD5B7CF562EBFNLCLUEXM10con_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable 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 opt= ion does not work on my legacy HP-UX systems. The man page for tail says -n, --lines=3DN 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 Architecture: amd64 Version: 7.4-2ubuntu3 Replaces: mktemp Pre-Depends: libacl1 (>=3D 2.2.11-1), libattr1 (>=3D 2.4.41-1), libc6 (>=3D= 2.11), libselinux1 (>=3D 1.32) regards Peter ________________________________ The information contained in this message may be confidential and legally p= rotected under applicable law. The message is intended solely for the addre= ssee(s). If you are not the intended recipient, you are hereby notified tha= t any use, forwarding, dissemination, or reproduction of this message is st= rictly prohibited and may be unlawful. If you are not the intended recipien= t, please contact the sender by return e-mail and destroy all copies of the= original message. --_000_08037F11EBCBB845B82BBFF9B1D05CD5B7CF562EBFNLCLUEXM10con_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hello maintainer,

 

running    tail  +2  &n= bsp;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 unfor= tunately the –lines option does not work on my legacy HP-UX systems.<= o:p>

 

The man page for tail says

       -n, --lines=3DN=

        &nbs= p;     output the last N lines, instead of the last 10;= or  use  +N  to

        &nbs= p;     output lines starting with the Nth

 

Here is the version of coreutils which I am running:=

        &nbs= p;      

#dpkg -s coreutils

Package: coreutils

Essential: yes

Status: install ok installed

Priority: required

Section: utils

Installed-Size: 12988

Maintainer: Ubuntu Developers <ubuntu-devel-discu= ss@lists.ubuntu.com>

Architecture: amd64

Version: 7.4-2ubuntu3

Replaces: mktemp

Pre-Depends: libacl1 (>=3D 2.2.11-1), libattr1 (&= gt;=3D 2.4.41-1), libc6 (>=3D 2.11), libselinux1 (>=3D 1.32)

 

regards

  Peter



The information contained in= this message may be confidential and legally protected under applicable la= w. 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 i= s strictly prohibited and may be unlawful. If you are not the intended reci= pient, please contact the sender by return e-mail and destroy all copies of= the original message.
--_000_08037F11EBCBB845B82BBFF9B1D05CD5B7CF562EBFNLCLUEXM10con_-- From debbugs-submit-bounces@debbugs.gnu.org Wed Dec 29 02:41:25 2010 Received: (at 7753-done) by debbugs.gnu.org; 29 Dec 2010 07:41:25 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PXqez-0001YG-0s for submit@debbugs.gnu.org; Wed, 29 Dec 2010 02:41:25 -0500 Received: from smtp.cs.ucla.edu ([131.179.128.62]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PXqev-0001Y2-Vn for 7753-done@debbugs.gnu.org; Wed, 29 Dec 2010 02:41:23 -0500 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.cs.ucla.edu (Postfix) with ESMTP id 79AA139E80F0; Tue, 28 Dec 2010 23:48:13 -0800 (PST) X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu Received: from smtp.cs.ucla.edu ([127.0.0.1]) by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id d-F97az3LxK2; Tue, 28 Dec 2010 23:48:13 -0800 (PST) Received: from [192.168.1.10] (pool-71-189-109-235.lsanca.fios.verizon.net [71.189.109.235]) by smtp.cs.ucla.edu (Postfix) with ESMTPSA id 2177239E80DF; Tue, 28 Dec 2010 23:48:13 -0800 (PST) Message-ID: <4D1AE7BC.3040907@cs.ucla.edu> Date: Tue, 28 Dec 2010 23:48:12 -0800 From: Paul Eggert Organization: UCLA Computer Science Department User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101208 Thunderbird/3.1.7 MIME-Version: 1.0 To: "Kielbasiewicz, Peter" Subject: Re: bug#7753: Bug in tail command References: <08037F11EBCBB845B82BBFF9B1D05CD5B7CF562EBF@NLCLUEXM10.connect1.local> In-Reply-To: <08037F11EBCBB845B82BBFF9B1D05CD5B7CF562EBF@NLCLUEXM10.connect1.local> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Score: -2.9 (--) X-Debbugs-Envelope-To: 7753-done Cc: 7753-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.9 (--) 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. From debbugs-submit-bounces@debbugs.gnu.org Wed Dec 29 14:53:22 2010 Received: (at 7753) by debbugs.gnu.org; 29 Dec 2010 19:53:22 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PY25J-0001kG-VJ for submit@debbugs.gnu.org; Wed, 29 Dec 2010 14:53:22 -0500 Received: from joseki.proulx.com ([216.17.153.58]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PY25I-0001k4-1i for 7753@debbugs.gnu.org; Wed, 29 Dec 2010 14:53:20 -0500 Received: from hysteria.proulx.com (hysteria.proulx.com [192.168.230.119]) by joseki.proulx.com (Postfix) with ESMTP id 4B0F821363; Wed, 29 Dec 2010 13:00:13 -0700 (MST) Received: by hysteria.proulx.com (Postfix, from userid 1000) id 317F32DCD7; Wed, 29 Dec 2010 13:00:13 -0700 (MST) Date: Wed, 29 Dec 2010 13:00:13 -0700 From: Bob Proulx To: "Kielbasiewicz, Peter" , 7753@debbugs.gnu.org Subject: Re: bug#7753: Bug in tail command Message-ID: <20101229200013.GA15052@hysteria.proulx.com> References: <08037F11EBCBB845B82BBFF9B1D05CD5B7CF562EBF@NLCLUEXM10.connect1.local> <4D1AE7BC.3040907@cs.ucla.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4D1AE7BC.3040907@cs.ucla.edu> User-Agent: Mutt/1.5.20 (2009-06-14) X-Spam-Score: -2.4 (--) X-Debbugs-Envelope-To: 7753 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.4 (--) Paul Eggert wrote: > 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. Additional information is available in the FAQ: http://www.gnu.org/software/coreutils/faq/#Old-tail-plus-N-syntax-now-fails Bob From unknown Mon Aug 18 14:13:58 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 27 Jan 2011 12:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator