runtime/exec_replaces_process.rb

tests/_examples/runtime/exec_replaces_process.rb in the metorex repository.

puts "before exec"
exec "echo replaced"
puts "never reached"

Output:

before exec
replaced