[MacRuby] #467: macrubyc generate binary that does not work using File.dirname
#467: macrubyc generate binary that does not work using File.dirname -------------------------------------+-------------------------------------- Reporter: jordan.breeding@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: -------------------------------------+-------------------------------------- During the investigation for #424 I decide to try compiling my main script using macrubyc, unfortunately it didn't work at all. I narrowed the initial failure to compiler (since I don't know if there will be other problems later) to: {{{ #!/usr/bin/env macruby $:.unshift(File.dirname($0)) }}} It results in this error: {{{ 154 jordan@thetourist ~/Tests/priority_queue_bug > ./test core:in `dirname:': can't convert false into String (TypeError) }}} -- Ticket URL: <http://www.macruby.org/trac/ticket/467> MacRuby <http://macruby.org/>
#467: macrubyc generate binary that does not work using File.dirname -------------------------------------+-------------------------------------- Reporter: jordan.breeding@… | Owner: lsansonetti@… Type: defect | Status: closed Priority: blocker | Milestone: MacRuby 0.5 Component: MacRuby | Resolution: fixed Keywords: | -------------------------------------+-------------------------------------- Changes (by lsansonetti@…): * status: new => closed * resolution: => fixed * milestone: => MacRuby 0.5 Comment: Should be fixed by r3090: {{{ $ cat t.rb p $0 $ ./miniruby -I./lib bin/rubyc t.rb $ ./a.out "./a.out" }}} -- Ticket URL: <http://www.macruby.org/trac/ticket/467#comment:1> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby