-Khem
On Jul 30, 2012, at 2:26 AM, Paul Eggleton <paul.eggle...@linux.intel.com> wrote: > On Sunday 29 July 2012 14:27:05 Khem Raj wrote: >> we were assigning local variable to an array coming through >> positional arguments. local is a non posix contruct thats >> also supported by dash luckily but operates differently in this >> case it exapnds the array before assignment. so >> >> local pkgs="$@" >> >> turns into pkgs=locale-base-en-us locale-base-en-gb >> >> ant we see errors >> >> run.do_rootfs.25593: 932: local: locale-base-en-gb: bad variable name >> >> So lets not use defining and assigning local in one go >> first define a local and then the assignment > > Oops, sorry about that. > > However, in the other thread you said package_rpm.bbclass was "full of > bashisms" - is there only this one? I was referring to use of local since that is not posix but it seems it's so prevalent that even dash has extension for it so we are ok with dash and bash there > > Cheers, > Paul > > -- > > Paul Eggleton > Intel Open Source Technology Centre _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core