The backtick operator in Ruby (e.g. `date`) executes a system command.
In Jruby 1.5.3 this is not working and in my example caused some odd side effects. This is a known issue (http://jira.codehaus.org/browse/JRUBY-5133) that I'm sure will be fixed in the next release.
For now, use Jruby 1.4.1 as backticks seem to work fine here.
A collection of computer systems and programming tips that you may find useful.
Brought to you by Craic Computing LLC, a bioinformatics consulting company.
Subscribe to:
Post Comments (Atom)
Contributors
Archive of Tips
-
▼
2010
(40)
-
▼
October
(8)
- Searchlogic versus MetaSearch and Rails3
- Passenger 3, nginx and rvm on Mac OS X 10.6
- Setting Environment Variables for Sudo on Mac OS X
- Backtick operator in Jruby 1.5.3 not working
- rvm on Mac OS X Snow Leopard
- !! in Ruby
- Stripping non-ASCII characters from text in Ruby
- /etc/paths.d as a way to configure Paths in Mac OS X
-
▼
October
(8)
No comments:
Post a Comment