Hi,

Gour <gour / mail.inet.hr> writes:

> However under Win platform & MSYS environment which uses POSIX notation:
> 
> ggd@GGD ~
> $ ruby -v
> ruby 1.8.0 (2003-07-24) [i386-mingw32]
> 
> ggd@GGD ~
> $ ruby t.rb
> t.rb:1:in ``': No such file or directory - wx-config --cxx (Errno::ENOENT)
>         from t.rb:1
> 
> ggd@GGD ~
> $ irb
> irb(main):001:0> `wx-config --cxx`
> `wx-config --cxx`
> Errno::ENOENT: No such file or directory - wx-config --cxx
>         from (irb):1:in ``'
>         from (irb):1
> 
> $ wx-config --cxx
> c++
> 
> 
> The same error if I use %x delimiter instead of backtick.
> 
> Is it a Ruby bug?

No.  MinGW ruby is a navite win32 application.  It does not
recognize shell script like mswin32 ruby.

watanabe@PORTER ~/ruby/msys
$ ruby -v
ruby 1.8.0 (2003-07-29) [i386-mingw32]

watanabe@PORTER ~/ruby/msys
$ printf "#! /bin/sh\necho Hello" >/bin/foo

watanabe@PORTER ~/ruby/msys
$ foo
Hello

watanabe@PORTER ~/ruby/msys
$ ruby -e 'p `foo`'
-e:1:in ``': No such file or directory - foo (Errno::ENOENT)
        from -e:1

watanabe@PORTER ~/ruby/msys
$ ruby -e 'p `sh foo`'
"Hello\n"

-- 
eban