From nobody Mon Jan 30 16:20:08 2023 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4P5D142jrrz3brws for ; Mon, 30 Jan 2023 16:20:08 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4P5D140t9lz4701 for ; Mon, 30 Jan 2023 16:20:08 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1675095608; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ayjhqdgsUoVI5LaSh55YdEvmqCa2aU8iUj82x0W89Gw=; b=SBvP5qaGCHluycm5lz2UHvq+3oBNaFbhMvmy43FZX9eOnBllsIxEQ98PFGtLqur3HVxoTQ FMPt9FBNPtWrl0E+LE9tkoiSgHlxe2qOqP7q8qj3Itt3Y73eAyFnKeTG45BAY3h6pCL3zI dQmUbwI0RbUpzxaKgGDNTm2bg1MIyaZSqwF2azDEhxxrj/fnTx+v3zCIYR4Qz6BkvsJlWu PBBcOJ5PLKDezS7rffpWga+xJp+3A00kzhVOll9jborszLgVSZEz/NjpVOHgzluE8BIRHK U3XnwRvpKoQz854v3IHd3n1dHKHV4oaTdkfeL57iGwQYVWwXbOHlyS2hm6HmdQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1675095608; a=rsa-sha256; cv=none; b=GkGYTikn2VEzJG+JjBfzT+ymc+gV0W+GmNJ4g3nuNfuIDMQ4FegukzKViHsK+j99YcsElz T4Rq2Pdw+0K6uHNq0UKrFsDWuPrR8gDiGlYKQqdLJ+2IctuX/O5GAuwGns64r7xik1Q3TR FhCrn8fBAKMlUXtbQ4p8ScMFikzJjunU7wdD3qHn9gF7icre+lUTwn5GiO0uJ2q1VhIHtR 08gsEqqYu13fTVbcRsmp+sagXUINo80d71lvLrx/5udQKxY/alVoMytFkqfvzoGHFGwZdE WCx9/bHi3LMHpQuRj7sliTXYITcSmNafo0KnJ+Bipz6ck2sxM8Ouvz8+9nemSQ== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4P5D136xlLzFXr for ; Mon, 30 Jan 2023 16:20:07 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 30UGK7G5016679 for ; Mon, 30 Jan 2023 16:20:07 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 30UGK7aR016678 for bugs@FreeBSD.org; Mon, 30 Jan 2023 16:20:07 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 269250] split(1): auto-extend suffix length if required Date: Mon, 30 Jan 2023 16:20:08 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: Unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: jschauma@netmeister.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D269250 Bug ID: 269250 Summary: split(1): auto-extend suffix length if required Product: Base System Version: Unspecified Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: jschauma@netmeister.org I've just committed a change to NetBSD's split(1) to auto-extend the suffix-length if needed: If the input cannot be split into the number of files resulting from the default suffix length, automatically extend the suffix length rather than bailing out with 'too many files'. Suffixes are extended such that the resulting files continue to sort lexica= lly and "cat *" would reproduce the input. For example, splitting a 1M lines f= ile into (default) 1000 lines per file would yield files named 'xaa', 'xab', ..= ., 'xyy', 'xyz', 'xzaaa', 'xzaab', ..., 'xzanl'. If '-a' is specified, the suffix length is not auto-extended. This behavior matches GNU sort(1) since around version 8.16. The NetBSD diffs are here: http://cvsweb.netbsd.org/bsdweb.cgi/src/usr.bin/split/split.c.diff?r1=3D1.2= 8&r2=3D1.29 http://cvsweb.netbsd.org/bsdweb.cgi/src/usr.bin/split/split.1.diff?r1=3D1.1= 5&r2=3D1.16 --=20 You are receiving this mail because: You are the assignee for the bug.=