From owner-freebsd-bugs@freebsd.org Sat Jan 2 21:07:53 2021 Return-Path: Delivered-To: freebsd-bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 95DE64DF029 for ; Sat, 2 Jan 2021 21:07:53 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4D7ZGx3bf2z3DTK for ; Sat, 2 Jan 2021 21:07:53 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 79BB24DEEED; Sat, 2 Jan 2021 21:07:53 +0000 (UTC) Delivered-To: bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 798134DF19B for ; Sat, 2 Jan 2021 21:07:53 +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 "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4D7ZGx2d9mz3DcP for ; Sat, 2 Jan 2021 21:07:53 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) 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 4BE961BCCF for ; Sat, 2 Jan 2021 21:07:53 +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 102L7rGQ038443 for ; Sat, 2 Jan 2021 21:07:53 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 102L7r5m038442 for bugs@FreeBSD.org; Sat, 2 Jan 2021 21:07:53 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 251770] /bin/sh: false expansion Date: Sat, 02 Jan 2021 21:07:53 +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: 12.1-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: steffen@sdaoden.eu X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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 MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Jan 2021 21:07:53 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D251770 --- Comment #2 from Steffen (Daode) Nurpmeso --- Sorry for being too terse. It was just a simplemost reproducer without any further comments. Sorry. #?2|kent$ for s in dash bash mksh bosh; do $s -c 'du=3Dich wir=3D'"'"'hey '= "'"'$du; echo $wir'; done hey ich hey ich hey ich hey ich Hmmmm. Since issue 1123 is possibly not, you surely mean instead 75501 Variable assignments shall be performed as follows: 75502 =E2=80=A2 If no command name results, variable assignme= nts shall affect the current execution 75503 environment. 75504 =E2=80=A2 If the command name is not a special built-in= utility or function, the variable assignments 75505 shall be exported for the execution environment of the command and shall not affect the 75506 current execution environment except as a side-effect= of the expansions performed in step 75507 4. In this case it is unspecified: 75508 =E2=80=94 Whether or not the assignments are visibl= e for subsequent expansions in step 4 75509 =E2=80=94 Whether variable assignments made as side= -effects of these expansions are visible for 75510 subsequent expansions in step 4, or in the current shell execution environment, or 75511 both where 4 is 5495 4. Each variable assignment shall be expanded for tilde expansion, parameter expansion, 75496 command substitution, arithmetic expansion, = and quote removal prior to assigning the 75497 value. So .. this very exact behaviour is unspecified? If that is really true (i personally have hard times with standard texts), this issue can very well be closed. (FreeBSD sh is alone with this exact behaviour as far as i know, still..) --=20 You are receiving this mail because: You are the assignee for the bug.=