On Thu, May 3, 2012 at 1:32 PM, Jan Schaumann <span dir="ltr"><<a href="mailto:jschauma@netmeister.org" target="_blank">jschauma@netmeister.org</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div>Matthew Story <<a href="mailto:matthewstory@gmail.com" target="_blank">matthewstory@gmail.com</a>> wrote:<br>
<br>
> I decided to take Jan's advice and "test all the things" in bash, dash and<br>
> FreeBSD sh:<br>
<br>
</div>Nice follow-up!<br></blockquote><div><br></div><div>One odd bit here is that the functionality for functions is the same as built-ins per shell:</div><div><br></div><div>bash $ hi() { echo "$HI"; }</div><div>

bash $ HI=HELLO hi</div><div>HELLO</div><div>bash $ echo "$HI"</div><div><br></div><div>dash $ hi() { echo "$HI"; }</div><div>dash $ HI=HELLO hi</div><div>HELLO</div><div>dash $ echo "$HI"</div>

<div>HELLO</div><div>freebsd sh $ hi() { echo "$HI"; }</div><div>freebsd sh $ HI=HELLO hi</div><div>HELLO</div><div>freebsd sh $ echo "$HI"</div><div>HELLO</div><div><br></div><div>whereas the specification only exempts special built-ins from setting current environment.  I think this is likely an omission in the specification, I have submitted this as a bug to the Austin Group</div>
<div><br></div><div><a href="http://austingroupbugs.net/view.php?id=562">http://austingroupbugs.net/view.php?id=562</a></div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<span><font color="#888888"><br>
-Jan<br>
</font></span><br>_______________________________________________<br>
talk mailing list<br>
<a href="mailto:talk@lists.nycbug.org" target="_blank">talk@lists.nycbug.org</a><br>
<a href="http://lists.nycbug.org/mailman/listinfo/talk" target="_blank">http://lists.nycbug.org/mailman/listinfo/talk</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>regards,<br>matt<br>