# Running autotest

**URL:** <https://www.ruby-forum.com/t/running-autotest/167512>\
**Category:** JRuby\
**Created:** [May 8, 2009, 7:52pm UTC](https://www.ruby-forum.com/t/running-autotest/167512 "2009-05-08T19:52:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![markcasio](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/e9bcb4/32.png) [@markcasio](https://www.ruby-forum.com/u/markcasio)\
**Post date:** [May 8, 2009, 7:52pm UTC](https://www.ruby-forum.com/t/running-autotest/167512/1 "2009-05-08T19:52:46Z")

</div>

I can’t get autotest to work with JRuby under cygwin, so now I’m  
trying in a Windows Command Prompt.  
It’s having trouble with a line like this:

jruby -e “%w[test/unit test/test\_parser.rb].each { |f| require f }”

It says ‘f’ is not recognized as an internal or external command. Any  
idea why it is trying to interpret that as a Windows command?

* * *

Mark V.

> **[R. Mark Volkmann](https://objectcomputing.com/resources/publications/mark-volkmann/mark-volkmann)**
>
> OCI partner and principal software engineer Mark Volkmann has expertise in Java, XML, Web, JavaScript, jQuery, Node.js, and AngularJS application development.

---

<div class="post-metadata">

**Author:** ![markcasio](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/e9bcb4/32.png) [@markcasio](https://www.ruby-forum.com/u/markcasio)\
**Post date:** [May 8, 2009, 8:36pm UTC](https://www.ruby-forum.com/t/running-autotest/167512/2 "2009-05-08T20:36:43Z")

</div>

Probably |f| require f is being interpreted as “pipe to program ‘f’ and  
then pipe to program ‘require’ with arg ‘f }’.” If you turn enough  
echoing on in the .bat files, you should be able to find where the  
problem is.

In jruby 1.1.3 (the version I have handy) it looks like \_jrubyvmopts.bat  
does this:

set \_ARGS=%\_ARGS:"=\_D%

and that’s where windows starts to think it needs to handle the | in the  
-e string. You might be able resolve this by adding

set \_ARGS=%\_ARGS:|=\_P%

before the line quoted earlier, and then unescaping it later.

Mark V. wrote:

> Mark V.  
> [http://www.ociweb.com/mark](http://www.ociweb.com/mark)

* * *

To unsubscribe from this list, please visit:

```
http://xircles.codehaus.org/manage_email

```

---

<div class="post-metadata">

**Author:** ![markcasio](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/e9bcb4/32.png) [@markcasio](https://www.ruby-forum.com/u/markcasio)\
**Post date:** [May 8, 2009, 8:55pm UTC](https://www.ruby-forum.com/t/running-autotest/167512/3 "2009-05-08T20:55:02Z")

</div>

Our windows batch files are admittedly hacky. We don’t have a lot of  
expertise in that area, so if you find something that works please  
send us a patch!

Thanks,  
/Nick

On Friday, May 8, 2009, Matt B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> ## before the line quoted earlier, and then unescaping it later.

* * *

To unsubscribe from this list, please visit:

```
http://xircles.codehaus.org/manage_email

```
