Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DOC] Doc for command line options #10059

Merged
merged 5 commits into from Feb 23, 2024
Merged

Conversation

BurdetteLamar
Copy link
Member

Doc for certain Ruby command-line options that affect the program's environment.

@BurdetteLamar BurdetteLamar added the Documentation Improvements to documentation. label Feb 21, 2024
doc/command_line/environment.md Outdated Show resolved Hide resolved
doc/command_line/environment.md Outdated Show resolved Hide resolved
doc/command_line/environment.md Outdated Show resolved Hide resolved
doc/command_line/environment.md Outdated Show resolved Hide resolved
doc/command_line/environment.md Outdated Show resolved Hide resolved
doc/command_line/environment.md Outdated Show resolved Hide resolved
doc/command_line/environment.md Outdated Show resolved Hide resolved
doc/command_line/environment.md Outdated Show resolved Hide resolved
each in the range `0..7`;
these digits are prefixed with digit `0` to form an octal value:

- If that value is in range `(0..0377)`,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- If that value is in range `(0..0377)`,
- If that value is `0`, the input record separator is `""`;
see {Special Line Separator Values}[rdoc-ref:IO@Special+Line+Separator+Values].
- If that value is in range `(1..0377)`,

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Revised.

$ ruby -W1 -e 'p $foo'
nil
$ ruby -W2 -e 'p $foo'
-e:1: warning: global variable `$foo' not initialized
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The quote has changed recently.

Suggested change
-e:1: warning: global variable `$foo' not initialized
-e:1: warning: global variable '$foo' not initialized

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixedd.

@peterzhu2118 peterzhu2118 merged commit e458494 into ruby:master Feb 23, 2024
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation Improvements to documentation.
3 participants