NetBSD Problem Report #57483

From nabijaczleweli@nabijaczleweli.xyz  Fri Jun 23 14:17:01 2023
Return-Path: <nabijaczleweli@nabijaczleweli.xyz>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 1916E1A923E
	for <gnats-bugs@gnats.NetBSD.org>; Fri, 23 Jun 2023 14:17:01 +0000 (UTC)
Message-Id: <tidzuq4kchz67y3iq6wwpknfdgfenzbg6frejm6evienm6wmo6@5bw4ragrmcvs>
Date: Fri, 23 Jun 2023 16:16:55 +0200
From: =?utf-8?B?0L3QsNCx?= <nabijaczleweli@nabijaczleweli.xyz>
Reply-To: =?utf-8?B?0L3QsNCx?= <nabijaczleweli@nabijaczleweli.xyz>
To: gnats-bugs@netbsd.org
Subject: tail -fn +20 and -fc +20 broken by legacy format
X-Send-Pr-Version: 3.95

>Number:         57483
>Category:       bin
>Synopsis:       tail -fn +20 and -fc +20 broken by legacy format
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jun 23 14:20:00 +0000 2023
>Last-Modified:  Fri Jun 23 17:05:01 +0000 2023
>Originator:     TODO
>Release:        NetBSD 9.2
>Environment:
System: NetBSD netbsd-dev 9.2 NetBSD 9.2 (GENERIC) #0: Wed May 12 13:15:55 UTC 2021 mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/i386/compile/GENERIC i386
Architecture: i386
Machine: i386
>Description:
Regardless of the inputs, tail -fc +20 and tail -fn +20 error
instantly with
  tail: illegal offset -- -n+20

This could have something to do with the undocumented "tail +20"
and "tail -20" legacy usages, but this breaks normal standard usage,
but tail -c +20 and tail -n +20 do work, so idk.

Best,

--4dvz3evztwxlh7rz
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEEfWlHToQCjFzAxEFjvP0LAY0mWPEFAmSVqVQACgkQvP0LAY0m
WPFjBA/+Meb0JKT1aDpQ1XwU/GIXqDpAF48vTFtuiqHIvHlDAR96HlN3wSow46GL
l7uJe0s2UQhZwFhQ+wiV3mzaRvTeRbFsSeDWcHq0ScHzyF+DTq8X2KTPb3AwVoI3
cg9z8dW74UfqvsCSiEP+uxpeSwPcUza+5NltL3LIVH/ZzXaJkPE7j0s8xrSddGZZ
CDgWZsaEGKJcxJu+Eh8XajZOAuYE3/31ltMUxuWdm87Q76+Q3n9dYlg0UYDBfSPC
oILSjVistFGlMhLmYUnGNOWZc6BI3r1ENQFt/uDvGcvdFtBd+WaZQVBFWR5a5Cp/
cmdUGm8Z3CwkZJf8483sXO2mTaWyOYKe8dijR2kiJJwn0+cchGVKgBaexaa5jTG1
zWI+5B6VeaIPEsF2HzJrU/lxZZ/YFD/nwblFrIXHyP3TgfInz0takZhe4K9MropC
RMHl9m5XWp/oehzJbvF3jp4vl5yRBRhH9CFC1Y9MzxE7iA3sHMI5cwUQzpozuccw
nR89Ry8LgqHG0ZJ4FB9yWh41l+Tdu6Kw4hc88n1f0Kyn1py5Ey+jRt26wzTDEbLI
jl6ykzji74dgMUwv34CyTNv27LBQ0AtDnPygAIyISeWm9g3cgUJNdSs+RMxzuMP6
EndMbqhejuZO8E7Qzqid5NmVrdFRTPrtGDsdCNV8GUnoFR7OPrM=
=pKYs
-----END PGP SIGNATURE-----

--4dvz3evztwxlh7rz--

>Fix:

Unknown
>Audit-Trail:
From: Valery Ushakov <uwe@stderr.spb.ru>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: bin/57483: tail -fn +20 and -fc +20 broken by legacy format
Date: Fri, 23 Jun 2023 20:00:15 +0300

 It's probably confused b/c -c is "hidden" by being fused into "-fc"
 and so obsolete() doesn't detect it.

 -uwe

>Unformatted:
 --4dvz3evztwxlh7rz
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2023 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.