# \[Bug:trunk\] wrong error message from spawn with env

**URL:** <https://www.ruby-forum.com/t/bug-trunk-wrong-error-message-from-spawn-with-env/189073>\
**Category:** Development\
**Created:** [May 24, 2010, 1:12am UTC](https://www.ruby-forum.com/t/bug-trunk-wrong-error-message-from-spawn-with-env/189073 "2010-05-24T01:12:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nobu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/e9c0ed/32.png) [@nobu](https://www.ruby-forum.com/u/nobu)\
**Post date:** [May 24, 2010, 1:12am UTC](https://www.ruby-forum.com/t/bug-trunk-wrong-error-message-from-spawn-with-env/189073/1 "2010-05-24T01:12:39Z")

</div>

e$B$J$+$@$G$9!#e(B

system({“FOO”=\>“BAR”}, “non/existing/command”) e$B$NNc30$,$\*$+$7$Je(B  
messagee$B$K$J$C$F$$$^$9!#@hF,$Ne(Benve$B$,e(BT\_HASHe$B$J$N$K$=$N$^$^e(B  
RSTRING\_PTRe$B$r;H$C$F$$$k$?$a$G$9!#e(B

---

<div class="post-metadata">

**Author:** ![nobu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/e9c0ed/32.png) [@nobu](https://www.ruby-forum.com/u/nobu)\
**Post date:** [May 24, 2010, 1:17am UTC](https://www.ruby-forum.com/t/bug-trunk-wrong-error-message-from-spawn-with-env/189073/2 "2010-05-24T01:17:22Z")

</div>

e$B%A%1%C%He(B #3334 e$B$,99?7$5$l$^$7$?!#e(B (by Nobuyoshi N.)

e$B%9%F!\<%?%9e(B Opene$B$+$ie(BClosede$B$KJQ99e(B  
e$B?JD=e(B % 0e$B$+$ie(B100e$B$KJQ99e(B

This issue was solved with changeset r27985.  
Nobuyoshi, thank you for reporting this issue.  
Your contribution to Ruby is greatly appreciated.  
May Ruby be with you.

* * *

[http://redmine.ruby-lang.org/issues/show/3334](http://redmine.ruby-lang.org/issues/show/3334)
