Skip to content

Commit

Permalink
fixed shell reference to not use $ under windows
Browse files Browse the repository at this point in the history
  • Loading branch information
jimweirich committed Sep 6, 2008
1 parent 9981a2f commit 02a0fbe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/test_fileutils.rb
Expand Up @@ -200,7 +200,8 @@ def test_ruby
ENV['RAKE_TEST_RUBY'] = "123"
block_run = false
# This one gets expanded by the shell
ruby %{-e "exit $RAKE_TEST_RUBY"} do |ok, status|
cmd = windows? ? '%RAKE_TEST_RUBY%' : '$RAKE_TEST_RUBY'
ruby %{-e "exit #{cmd}"} do |ok, status| # " (emacs wart)
assert(!ok)
assert_equal 123, status.exitstatus
block_run = true
Expand Down

0 comments on commit 02a0fbe

Please sign in to comment.