James Gray
9/26/2007 2:59:00 AM
On Sep 25, 2007, at 9:00 PM, Une Bévue wrote:
> Une Bévue <unbewusst.sein@weltanschauung.com.invalid> wrote:
>
>>> ri Kernel#system
>
> better (on mac os x) :
>
> ri Kernel\#system
The first version works fine on my OS X box:
Welcome to Darwin!
Firefly:~$ ri -T Kernel#system
---------------------------------------------------------- Kernel#system
system(cmd [, arg, ...]) => true or false
------------------------------------------------------------------------
Executes _cmd_ in a subshell, returning +true+ if the command was
found and ran successfully, +false+ otherwise. An error status is
available in +$?+. The arguments are processed in the same way as
for +Kernel::exec+.
system("echo *")
system("echo", "*")
_produces:_
config.h main.rb
*
James Edward Gray II