lib/fig/operating_system.rb
# *sigh* Apparently Ruby < v1.9.3 does some wacko thing with single argument
# exec that causes it to not invoke the shell, so we've got this mess.
sigh* Apparently Ruby < v1.9.3 does some wacko thing with single argument
exec that causes it to not invoke the shell, so we've got this mess.
sigh * Apparently Ruby < v1 . 9 . 3 does some wacko thing with single argument exec that causes it to not invoke the shell so we ' ve got this mess .
def plain_or_shell_exec(command)
    if command.size > 1
      plain_exec(command)
    else
      shell_exec(command[0])
    end
  end
def plain_or_shell_exec ( command ) if command . size > 1 plain_exec ( command ) else shell_exec ( command [ 0 ] ) end end
sigh* Apparently Ruby < v1.9.3 does some wacko thing with single argument
exec that causes it to not invoke the shell, so we've got this mess.
sigh * Apparently Ruby < v1 . 9 . 3 does some wacko thing with single argument exec that causes it to not invoke the shell so we ' ve got this mess .
command