From nobody Mon Feb 13 01:55:38 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 4PFS973xvrz3pyF5 for ; Mon, 13 Feb 2023 01:55:39 +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 4PFS972TTcz3lXJ for ; Mon, 13 Feb 2023 01:55:39 +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=1676253339; 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=svmJ5ZI88k+pw7UK2Y5k/Jm9oK7iLuGQPzlSYy1gbII=; b=YIFzl+C7YrxVG4ypkktCXQkgpnl3ZkkDhvB325xWBEK2h0Cg6abAP6RxgfDz6dfZSRYW4e TzV6fJt1x745tkNUUSGuIFSsBIY/heLMAd76u/SXMaojOvlYZlNwz/ITxrdvz7k3Ia+v1g J+izvPRjJZm0hRmXnrqNhPjd3EJ03fk0MZ9uNbEbiYKbttnO+zS5csW0Z1GO7ElBNMWPNi E1OrwWid5ZItiqS+sFON6qE9Ba+1qFV1LrRdDtynLcbQRHBfS9yVyKOqt+QyQbf/QUjWrA tIJ9L2q7ydVBzrSR8O2slBCp1jJXU6ygFDryZFxROo8Gia4euLBNQp/lIHwfNg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1676253339; a=rsa-sha256; cv=none; b=MJzzwZEzdIP1ncdAif1c0okplnlzypcApYaKNswPNQTiyIxyu7AR873LyF4K6H5X0oEyVt RHHKVXyk70g7WZz3YHHOuTpCRTwkS2J/sBf5EbUR/Vw8LT7tiqcImjBV6ochjRdcz8t8R/ HzLStN9CtKqpipAYACFkHqznQ8qT5cwKs4KpyJzwMBM1fhllilKwXIv0HD3pC1BGNQ3Qxe MdyoTnFn8LZsvR0bzRW/Pf3DgoxLe5MH4zu/HM4NCqn7Blq2cUHVs0mY7P9JlcZw73tJjD Z0G0LjQrMUbWZ792LQZHCHuNMre1hJMK07SS1LvwjQ8ZRPmt/RkvZDg8kzO4Ow== 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 4PFS971RGkz119X for ; Mon, 13 Feb 2023 01:55:39 +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 31D1tds1047918 for ; Mon, 13 Feb 2023 01:55:39 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 31D1tdec047917 for bugs@FreeBSD.org; Mon, 13 Feb 2023 01:55:39 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 269521] split(1): add '-c' to continue creating files Date: Mon, 13 Feb 2023 01:55:38 +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 attachments.created 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=3D269521 Bug ID: 269521 Summary: split(1): add '-c' to continue creating files 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 Created attachment 240121 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D240121&action= =3Dedit diff to split.c, split.1 Currently, split(1) will clobber any existing output files: $ split file; ls xaa xab xac xad $ split second-file; ls xaa xab xac xad xae xaf with files 'xaa' - 'xad' now having been overwritten. I often would like for it to pick up where it left off and continue creating files in the sequence. Right now, there is no good way for me to yield the desired output of "xaa xab xac xad xae xaf xag xah xai xaj". The attached diff adds a flag "-c" (mnemonic "create, don't overwrite" or "continue where you left off"): $ split file; ls xaa xab xac xad $ split -c second-file; ls xaa xab xac xad xae xaf xag xah xai xaj --=20 You are receiving this mail because: You are the assignee for the bug.=