Ruby, Difference between exec, system and %x() or Backticks

前端 未结 3 1275
南旧
南旧 2020-11-22 16:47

What is the difference between the following Ruby methods?

exec, system and %x() or Backticks

I know they are

3条回答
  •  鱼传尺愫
    2020-11-22 17:39

    Here's a flowchart based on this answer. See also, using script to emulate a terminal.

提交回复
热议问题