From d6eecec2ec81f9125cd1a5ad4406db91a8ef810a Mon Sep 17 00:00:00 2001 From: Kenyon Ralph Date: Thu, 26 Jun 2025 18:09:31 -0700 Subject: [PATCH] [DOC] Fix backquote exit status docs It is `exitstatus`, not `status`, per https://github.com/ruby/ruby/blob/3d5619c8b1a76626e0991d758b71afc549829c38/process.c#L581 --- io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/io.c b/io.c index cc69119917..21b32ef3e0 100644 --- a/io.c +++ b/io.c @@ -10668,7 +10668,7 @@ argf_readlines(int argc, VALUE *argv, VALUE argf) * $ `date` # => "Wed Apr 9 08:56:30 CDT 2003\n" * $ `echo oops && exit 99` # => "oops\n" * $ $? # => # - * $ $?.status # => 99> + * $ $?.exitstatus # => 99> * * The built-in syntax %x{...} uses this method. *