Hacker News new | past | comments | ask | show | jobs | submit login

So I firmly believe that using shell expansion in your scripts is a horrid idea no matter what the syntax. But while you're thinking about backticks and ruby:

Much like a modern POSIX shell you can also use the more ergonomic %x (e.g. %x{echo true} %x(echo false).

Backticks will perform string interpolation before execution just like a normal double quoted string.

Backticks are simply a method, so you can redefine that on any object.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: