[DOC] Change formatting in the exec docs

The last part of the sentence was accidentally put in enumeration, It
made an impression that it's one of the rules, not the result of
applying the rules.
This commit is contained in:
Maciek Rząsa 2022-11-19 03:38:16 +01:00 committed by GitHub
parent 574d849869
commit 50c6cabadc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
Notes: git 2022-11-19 02:38:36 +00:00
Merged: https://github.com/ruby/ruby/pull/6762

Merged-By: nobu <nobu@ruby-lang.org>

View File

@ -3144,9 +3144,10 @@ NORETURN(static VALUE f_exec(int c, const VALUE *a, VALUE _));
* If the string from the first form (<code>exec("command")</code>) follows
* these simple rules:
*
* * no meta characters
* * not starting with shell reserved word or special built-in
* * Ruby invokes the command directly without shell
* * no meta characters,
* * not starting with shell reserved word or special built-in,
*
* Ruby invokes the command directly without shell.
*
* You can force shell invocation by adding ";" to the string (because ";" is
* a meta character).