mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
[DOC] Fix backquote exit status docs
It is `exitstatus`, not `status`, per 3d5619c8b1/process.c (L581)
This commit is contained in:
parent
f8cd26736f
commit
d6eecec2ec
1 changed files with 1 additions and 1 deletions
2
io.c
2
io.c
|
@ -10668,7 +10668,7 @@ argf_readlines(int argc, VALUE *argv, VALUE argf)
|
||||||
* $ `date` # => "Wed Apr 9 08:56:30 CDT 2003\n"
|
* $ `date` # => "Wed Apr 9 08:56:30 CDT 2003\n"
|
||||||
* $ `echo oops && exit 99` # => "oops\n"
|
* $ `echo oops && exit 99` # => "oops\n"
|
||||||
* $ $? # => #<Process::Status: pid 17088 exit 99>
|
* $ $? # => #<Process::Status: pid 17088 exit 99>
|
||||||
* $ $?.status # => 99>
|
* $ $?.exitstatus # => 99>
|
||||||
*
|
*
|
||||||
* The built-in syntax <tt>%x{...}</tt> uses this method.
|
* The built-in syntax <tt>%x{...}</tt> uses this method.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue