Summary: | /bin/sh: different behavior when chaining variable assignments | ||
---|---|---|---|
Product: | Base System | Reporter: | dylan.araps |
Component: | standards | Assignee: | freebsd-standards (Nobody) <standards> |
Status: | New --- | ||
Severity: | Affects Only Me | CC: | dylan.araps, jilles |
Priority: | --- | ||
Version: | 13.0-RELEASE | ||
Hardware: | Any | ||
OS: | Any |
Description
dylan.araps
2021-08-09 07:09:00 UTC
If FreeBSD sh is the odd one out here, it may be good to change this (although ports might contain stuff like a=$b b=$a to swap). The exact rules about variable assignments in POSIX have changed via some interpretations, so the existing behaviour might still be POSIXly correct. |