From nobody Wed Mar 22 04:48:47 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 4PhGFq3rVjz3yp8k for ; Wed, 22 Mar 2023 04:48:47 +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 4PhGFq0V6Nz3nTG for ; Wed, 22 Mar 2023 04:48:47 +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=1679460527; 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: in-reply-to:in-reply-to:references:references; bh=v8q5clNxKf3znHA5D6PPWqKX2jWn5omj3EHVyyO7sS0=; b=xG8kFl+uvjvtC0DyhWX6OeMQtkTvCehxPqesurcrEX4cyP3W01JDjRvV3tcTh11rfkxp6S 5sB0iswj1xEOLVWURqoQcr5qUxlNlx2Bl3+/MJJ0fD1tuJnLZifIXeYv18sRJDy801f+RM kU5iEa0LdwBTGbtx6QHDKIhom8m6da7LzZ8WQ+xJRnjjmkw+5has+5+siCIitNkrP0w0mQ SJ6QSgmvPECpyyKygJLpY6KRtvfAdK47H/6AJmicGFT1uGPZlhUgQLsY5uIHomvQdohn9U GfhOXTm32iUz6bLv6Tcry4ljrbGYk969QUswyBCYno49FA/WRwW5LWgW7zzMBg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1679460527; a=rsa-sha256; cv=none; b=umYEL3obE+7vdwHa5bF0SyglO6ylVHudIuq+qoggGqmsAdvPBDKgav7Bq3cAPehftb/69G f6DZt2avTfTwXRaj/sJVUmnFfL26fpjluToWw2q1Dg1rhsFYf1qYF+ENB29RzhYcWz2a8h 0lJI1pWXDkR73OOeE82SZLA/mFvJQSrT4pW/EzhrChlBzmWVtb9T8AAXBFZ4rWmQGyQ8Au SeY9NFrhtzu5v6zp5uiLpXBo8Oo52A6z4f9cn5GnDyv0lI5vhyWe9XO+h78ysqbRsTyKjt /pgc3+4s9ujX8Q4GKVupX7tf4ghXuWWfwSFodq+G7ljc0d9/KuBdrTdeyjRYMg== 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 4PhGFp6czTzfg4 for ; Wed, 22 Mar 2023 04:48:46 +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 32M4mkmO043320 for ; Wed, 22 Mar 2023 04:48:46 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 32M4mkmW043319 for bugs@FreeBSD.org; Wed, 22 Mar 2023 04:48:46 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 270394] find(1): doesn't pass all files to the -exec utility Date: Wed, 22 Mar 2023 04:48:47 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 13.1-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: lwhsu@FreeBSD.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: cc Message-ID: In-Reply-To: References: 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=3D270394 Li-Wen Hsu changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |lwhsu@FreeBSD.org --- Comment #1 from Li-Wen Hsu --- I think this could be "works as intended." The shell command will receive the first file path as $0 and the reset will= be assigned to $@. So if find(1) found three files as `x/a x/b x/c`, the shell command will receive them as: $0 =3D x/a $@ =3D x/b x/c And: $ find x -type f -exec sh -c 'echo "files=3D$@"' {} + files=3Dx/c x/a $ find x -type f -exec sh -c 'echo "files=3D$0"' {} + files=3Dx/b $ find x -type f -exec sh -c 'echo "files=3D$0 $@"' {} + files=3Dx/b x/c x/a The GNU find(1) has the same behavior. --=20 You are receiving this mail because: You are the assignee for the bug.=