On Sat, 24 Mar 2007 19:32:35 -0400 Chet Ramey <[EMAIL PROTECTED]> wrote:
> Kevin F. Quinn wrote: > > my interpretation of > > "variable assignment" is the `A=' part of the statement; i.e. that > > the rhs of the assignment is expanded. > > It's not; the entire word, including the portion after the `=', is a > variable assignment. ah; that explains the bash behaviour w.r.t. Posix. I concur, as: $ A= one is two words due to the whitespace, so the rhs must be part of the word. > None of these shells are or claim posix compliance. The Solaris posix > shell is /usr/xpg4/bin/sh (or something). Of the others, dash is > closest to Posix compliance. FWIW I tried also /usr/xpg4/bin/sh (with the Belenix livecd, SunOS 5.11) and that shows the same as sh/ash/dash/bb. > I don't get these results with bash-3.2. I get "one two" for B both > times with bash (and ksh93, incidentally). Sorry; should have said - that was with bash-3.1.17; I should have tried 3.2. I see the same as you with bash-3.2 (and ksh-93s). Thanks again for your patience :) -- Kevin F. Quinn
signature.asc
Description: PGP signature
_______________________________________________ Bug-bash mailing list Bug-bash@gnu.org http://lists.gnu.org/mailman/listinfo/bug-bash