https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=251770
--- Comment #2 from Steffen (Daode) Nurpmeso <[email protected]> --- 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=ich wir='"'"'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 • If no command name results, variable assignments shall affect the current execution 75503 environment. 75504 • 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 — Whether or not the assignments are visible for subsequent expansions in step 4 75509 — 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..) -- You are receiving this mail because: You are the assignee for the bug. _______________________________________________ [email protected] mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-bugs To unsubscribe, send any mail to "[email protected]"
