From unknown Wed Jun 18 22:54:25 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#10976 <10976@debbugs.gnu.org> To: bug#10976 <10976@debbugs.gnu.org> Subject: Status: bugreport tail (GNU coreutils) 5.97 Reply-To: bug#10976 <10976@debbugs.gnu.org> Date: Thu, 19 Jun 2025 05:54:25 +0000 retitle 10976 bugreport tail (GNU coreutils) 5.97 reassign 10976 coreutils submitter 10976 Streit Andreas severity 10976 normal tag 10976 notabug thanks From debbugs-submit-bounces@debbugs.gnu.org Fri Mar 09 02:54:40 2012 Received: (at submit) by debbugs.gnu.org; 9 Mar 2012 07:54:40 +0000 Received: from localhost ([127.0.0.1]:39900 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1S5uet-0003IF-B1 for submit@debbugs.gnu.org; Fri, 09 Mar 2012 02:54:40 -0500 Received: from eggs.gnu.org ([208.118.235.92]:55627) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1S5uYr-00036U-Ju for submit@debbugs.gnu.org; Fri, 09 Mar 2012 02:48:26 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S5uXx-0003cY-Qf for submit@debbugs.gnu.org; Fri, 09 Mar 2012 02:47:31 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,HTML_MESSAGE, RCVD_IN_DNSWL_HI,X_IP autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:44148) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S5uXx-0003cU-Mr for submit@debbugs.gnu.org; Fri, 09 Mar 2012 02:47:29 -0500 Received: from eggs.gnu.org ([208.118.235.92]:51597) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S5uXr-0005l6-Rn for bug-coreutils@gnu.org; Fri, 09 Mar 2012 02:47:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S5uXp-0003bN-Ev for bug-coreutils@gnu.org; Fri, 09 Mar 2012 02:47:23 -0500 Received: from mx02.jhcn.net ([194.25.102.130]:43866) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S5uXp-0003a3-0Z for bug-coreutils@gnu.org; Fri, 09 Mar 2012 02:47:21 -0500 X-ip: 10.1.1.51 X-Footer: SET Content-Type: multipart/mixed; boundary="===============0476705357==" MIME-Version: 1.0 Received: from de01mx05.global.jhcn.net (localhost [127.0.0.1]) by de01mx05.global.jhcn.net (Postfix) with ESMTP id 88A2028F5F8 for ; Fri, 9 Mar 2012 08:47:11 +0100 (CET) From: Streit Andreas To: "bug-coreutils@gnu.org" Date: Fri, 9 Mar 2012 08:47:08 +0100 Subject: bugreport tail (GNU coreutils) 5.97 Thread-Topic: bugreport tail (GNU coreutils) 5.97 Thread-Index: Acz9yNRaJuZZWnfHSky2IXQnm/CHCw== Message-ID: <77F8985DD9A5D24F8E69D8DF7B1184E312EA568539@de01ex08.GLOBAL.JHCN.NET> Accept-Language: de-DE X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: de-DE MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.118.235.17 X-Spam-Score: -6.9 (------) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Fri, 09 Mar 2012 02:54:38 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 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.9 (------) --===============0476705357== Content-Language: de-DE Content-Type: multipart/alternative; boundary="_000_77F8985DD9A5D24F8E69D8DF7B1184E312EA568539de01ex08GLOBA_" --_000_77F8985DD9A5D24F8E69D8DF7B1184E312EA568539de01ex08GLOBA_ Content-Type: text/plain; charset="us-ascii" Hi, i just tried the following command with more than one file: tail -50 files_*.txt i get an error: tail: invalid option -- 5 Try `tail --help' for more information. If i try the same command with only one file it works properly: tail -50 files.txt If i try the modified command with more than one file it works properly: tail --lines=50 files_*.txt regards Andreas ------------------------------------------------------------ mailto:streit@heidenhain.de tel.: +49 8669 31 2789 fax: +49 8669 32 2789 ------------------------------------------------------------ DR. JOHANNES HEIDENHAIN GmbH Dr.-Johannes-Heidenhain-Str. 5 83301 Traunreut, Deutschland http://www.heidenhain.de/ --_000_77F8985DD9A5D24F8E69D8DF7B1184E312EA568539de01ex08GLOBA_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi,

=

 

i just tried the following command with more than one file:

 

tail -50 files_*.txt

i get an error:=

tail: invalid opti= on -- 5

Try `t= ail --help' for more information.

 

If i try the same command with only one file it works properly= :

tail -50 fil= es.txt

&n= bsp;

If i try the m= odified command with more than one file it works properly:

tail --lines=3D50 files_*.txt<= o:p>

 

 

regards

 

Andreas

 

 

 

--------= ----------------------------------------------------

<= p class=3DMsoNormal>mailto:streit@heidenhain.de

tel.: +49 8669 31 2789

fax: +49 8669 32 2789

------------------------------------------------------------=

 

DR. JOHANNES HEIDENHAIN GmbH

Dr.-Johannes-Heidenhain-Str. 5

83301 Traunreut, Deutschland

http://www.heidenhain.de/

 

 = ;

= --_000_77F8985DD9A5D24F8E69D8DF7B1184E312EA568539de01ex08GLOBA_-- --===============0476705357== Content-Type: multipart/alternative; boundary="===============0951928480==" MIME-Version: 1.0 Content-Disposition: inline --===============0951928480== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable ---------------------------------------------------------------------------= --------------------------- Registergericht: Traunstein / Registry Court: HRB 275 - Sitz / Head Office:= Traunreut Aufsichtsratsvorsitzender / Chairman of Supervisory Board: Rainer Burkhard Gesch=C3=A4ftsf=C3=BChrung / Management Board: Thomas Sesselmann (Vorsitzen= der / Chairman), Michael Grimm, Matthias Fauser, Sebastian Tondorf E-Mail Haftungsausschluss / E-Mail Disclaimer --===============0951928480== Content-Type: text/html; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable

---------------------------------------------------------------------------= ---------------------------
Registergericht: Traunstein / Registry Court: HRB 275 - Sitz / Head Office:= Traunreut
Aufsichtsratsvorsitzender / Chairman of Supervisory Board: Rainer Burkhard =
Gesch=C3=A4ftsf=C3=BChrung / Management Board: Thomas Sesselmann (Vorsitzen= der / Chairman),
Michael Grimm, Matthias Fauser, Sebastian Tondorf

E-Mail Ha= ftungsausschluss / E-Mail Disclaimer
--===============0951928480==-- --===============0476705357==-- From debbugs-submit-bounces@debbugs.gnu.org Fri Mar 09 12:57:46 2012 Received: (at control) by debbugs.gnu.org; 9 Mar 2012 17:57:46 +0000 Received: from localhost ([127.0.0.1]:40829 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1S644O-0001Rn-BI for submit@debbugs.gnu.org; Fri, 09 Mar 2012 12:57:45 -0500 Received: from mx1.redhat.com ([209.132.183.28]:1353) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1S6449-0001RP-SW; Fri, 09 Mar 2012 12:57:33 -0500 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q29HuOvj018929 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 9 Mar 2012 12:56:24 -0500 Received: from [10.3.113.110] (ovpn-113-110.phx2.redhat.com [10.3.113.110]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q29HuNSn003383; Fri, 9 Mar 2012 12:56:23 -0500 Message-ID: <4F5A4446.2090001@redhat.com> Date: Fri, 09 Mar 2012 10:56:22 -0700 From: Eric Blake Organization: Red Hat User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.1) Gecko/20120216 Thunderbird/10.0.1 MIME-Version: 1.0 To: Streit Andreas Subject: Re: bug#10976: bugreport tail (GNU coreutils) 5.97 References: <77F8985DD9A5D24F8E69D8DF7B1184E312EA568539@de01ex08.GLOBAL.JHCN.NET> In-Reply-To: <77F8985DD9A5D24F8E69D8DF7B1184E312EA568539@de01ex08.GLOBAL.JHCN.NET> X-Enigmail-Version: 1.3.5 OpenPGP: url=http://people.redhat.com/eblake/eblake.gpg Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enig26A2D85689B8FC0EEA2620E4" X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23 X-Spam-Score: -6.9 (------) X-Debbugs-Envelope-To: control Cc: 10976-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 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.9 (------) This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig26A2D85689B8FC0EEA2620E4 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable tag 10976 notabug thanks On 03/09/2012 12:47 AM, Streit Andreas wrote: > Hi, >=20 > i just tried the following command with more than one file: >=20 > tail -50 files_*.txt > i get an error: > tail: invalid option -- 5 > Try `tail --help' for more information. Thanks for the report. However, this behavior is intentional. POSIX says that you should be using -n50, and that while implementations may support -50 as an extension, it is not a requirement. Your usage is non-portable, and coreutils is alerting you to the fact. Per 'info tail', >> For compatibility `tail' also supports an obsolete usage `tail >> -[COUNT][bcl][f] [FILE]', which is recognized only if it does not >> conflict with the usage described above. This obsolete form uses >> exactly one option and at most one file. In the option, COUNT is an >> optional decimal number optionally followed by a size letter (`b', `c'= , >> `l') to mean count by 512-byte blocks, bytes, or lines, optionally >> followed by `f' which has the same meaning as `-f'. >>=20 >> On older systems, the leading `-' can be replaced by `+' in the >> obsolete option syntax with the same meaning as in counts, and obsolet= e >> 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::). > If i try the same command with only one file it works properly: > tail -50 files.txt Yes, this is an example of the obsolete usage. >=20 > If i try the modified command with more than one file it works properly= : > tail --lines=3D50 files_*.txt Yes, this is the preferred style (simplified to -n). Since the behavior is intentional, I'm closing this as not a bug. --=20 Eric Blake eblake@redhat.com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --------------enig26A2D85689B8FC0EEA2620E4 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBCAAGBQJPWkRHAAoJEKeha0olJ0NqaEUH/RMd7RqEcNkQKgbADuizjBt2 cl/w4cUuQ310zHWhMSJaHNcmObyhhOO6D+iCLdbcrJlKX6i8Mi8GxsRSy3xCSbhn NiL51LLwVZ6NZKpZOi0I432uVI3dejgo8llNs6dbdxggNeGk2UD0Rs3vHw3/yqes 8lc12L3pqP41DvOtTTC34qqGe7YIjfOcAPS3z9S0h/xXXYCxWoaBv/XywaUDDc/V Aclae2dq9AaxJiboQ2n2muqPAeBb4Swv6Aivv+xLuSDKStW4xzhXZ8iDZBf6t2js RnRhb9x2hwRDcTDVROzx4d0mTDJcfD7IlNnR4NrjVR5+Z5eGnPBa86Ghn7+5sj4= =HdQI -----END PGP SIGNATURE----- --------------enig26A2D85689B8FC0EEA2620E4-- From unknown Wed Jun 18 22:54:25 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 07 Apr 2012 11: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