diff --git a/process.c b/process.c index ad884ea07e..55b83b10b8 100644 --- a/process.c +++ b/process.c @@ -313,6 +313,10 @@ pst_message(VALUE str, rb_pid_t pid, int status) * stat.to_s -> string * * Show pid and exit status as a string. + * + * system("false") + * p $?.to_s #=> "pid 12766 exit 1" + * */ static VALUE @@ -336,6 +340,10 @@ pst_to_s(VALUE st) * stat.inspect -> string * * Override the inspection method. + * + * system("false") + * p $?.inspect #=> "#" + * */ static VALUE