mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* man/ruby.1: Grammar edits for man page
Based on a patch by Michael Endsley [Fixes Github #183] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37657 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
5c30ce373f
commit
81d71fee9b
2 changed files with 15 additions and 10 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Thu Nov 15 11:35:00 2012 Zachary Scott <zachary@zacharyscott.net>
|
||||||
|
|
||||||
|
* man/ruby.1: Grammar edits for man page
|
||||||
|
Based on a patch by Michael Endsley [Fixes Github #183]
|
||||||
|
|
||||||
Thu Nov 15 00:47:20 2012 Yusuke Endoh <mame@tsg.ne.jp>
|
Thu Nov 15 00:47:20 2012 Yusuke Endoh <mame@tsg.ne.jp>
|
||||||
|
|
||||||
* array.c (rb_ary_bsearch): add Array#bsearch for binary search.
|
* array.c (rb_ary_bsearch): add Array#bsearch for binary search.
|
||||||
|
|
20
man/ruby.1
20
man/ruby.1
|
@ -195,7 +195,7 @@ ASCII-8BIT (BINARY)
|
||||||
.It Fl S
|
.It Fl S
|
||||||
Makes Ruby use the
|
Makes Ruby use the
|
||||||
.Ev PATH
|
.Ev PATH
|
||||||
environment variable to search for script, unless if its name begins
|
environment variable to search for script, unless its name begins
|
||||||
with a slash. This is used to emulate
|
with a slash. This is used to emulate
|
||||||
.Li #!
|
.Li #!
|
||||||
on machines that don't support it, in the following manner:
|
on machines that don't support it, in the following manner:
|
||||||
|
@ -213,7 +213,7 @@ Sets the default value for internal encodings
|
||||||
.Pf ( Li "Encoding.default_internal" ) to UTF-8.
|
.Pf ( Li "Encoding.default_internal" ) to UTF-8.
|
||||||
.Pp
|
.Pp
|
||||||
.It Fl W Ns Op Ar level=2
|
.It Fl W Ns Op Ar level=2
|
||||||
Turns on verbose mode at the specified level, without printing version
|
Turns on verbose mode at the specified level without printing the version
|
||||||
message at the beginning. The level can be;
|
message at the beginning. The level can be;
|
||||||
.Bl -hang -offset indent
|
.Bl -hang -offset indent
|
||||||
.It Sy 0
|
.It Sy 0
|
||||||
|
@ -334,8 +334,8 @@ On some systems
|
||||||
.Li "$0"
|
.Li "$0"
|
||||||
does not always contain the full pathname, so you need the
|
does not always contain the full pathname, so you need the
|
||||||
.Fl S
|
.Fl S
|
||||||
switch to tell Ruby to search for the script if necessary. To handle
|
switch to tell Ruby to search for the script if necessary (to handle embedded
|
||||||
embedded spaces or such. A better construct than
|
spaces and such). A better construct than
|
||||||
.Li "$*"
|
.Li "$*"
|
||||||
would be
|
would be
|
||||||
.Li ${1+"$@"} ,
|
.Li ${1+"$@"} ,
|
||||||
|
@ -343,7 +343,7 @@ but it does not work if the script is being interpreted by
|
||||||
.Xr csh 1 .
|
.Xr csh 1 .
|
||||||
.Pp
|
.Pp
|
||||||
.It Fl v
|
.It Fl v
|
||||||
Enables verbose mode. Ruby will print its version at the beginning,
|
Enables verbose mode. Ruby will print its version at the beginning
|
||||||
and set the variable
|
and set the variable
|
||||||
.Li "$VERBOSE"
|
.Li "$VERBOSE"
|
||||||
to true. Some methods print extra messages if this variable is true.
|
to true. Some methods print extra messages if this variable is true.
|
||||||
|
@ -358,11 +358,11 @@ variable to true.
|
||||||
.Pp
|
.Pp
|
||||||
.It Fl x Ns Op Ar directory
|
.It Fl x Ns Op Ar directory
|
||||||
Tells Ruby that the script is embedded in a message. Leading garbage
|
Tells Ruby that the script is embedded in a message. Leading garbage
|
||||||
will be discarded until the first that starts with
|
will be discarded until the first line that starts with
|
||||||
.Dq #!
|
.Dq #!
|
||||||
and contains the string,
|
and contains the string,
|
||||||
.Dq ruby .
|
.Dq ruby .
|
||||||
Any meaningful switches on that line will applied. The end of script
|
Any meaningful switches on that line will be applied. The end of the script
|
||||||
must be specified with either
|
must be specified with either
|
||||||
.Li EOF ,
|
.Li EOF ,
|
||||||
.Li "^D" ( Li "control-D" ) ,
|
.Li "^D" ( Li "control-D" ) ,
|
||||||
|
@ -377,8 +377,8 @@ before executing script.
|
||||||
DO NOT USE.
|
DO NOT USE.
|
||||||
.Pp
|
.Pp
|
||||||
Turns on compiler debug mode. Ruby will print a bunch of internal
|
Turns on compiler debug mode. Ruby will print a bunch of internal
|
||||||
state messages during compiling scripts. You don't have to specify
|
state messages during compilation. Only specify this switch you are going to
|
||||||
this switch, unless you are going to debug the Ruby interpreter.
|
debug the Ruby interpreter.
|
||||||
.Pp
|
.Pp
|
||||||
.It Fl -disable- Ns Ar FEATURE
|
.It Fl -disable- Ns Ar FEATURE
|
||||||
.It Fl -enable- Ns Ar FEATURE
|
.It Fl -enable- Ns Ar FEATURE
|
||||||
|
@ -417,7 +417,7 @@ disassembled instructions
|
||||||
.Pp
|
.Pp
|
||||||
.El
|
.El
|
||||||
.Pp
|
.Pp
|
||||||
You don't have to specify this switch, unless you are going to debug the Ruby interpreter.
|
Only specify this switch if you are going to debug the Ruby interpreter.
|
||||||
.Pp
|
.Pp
|
||||||
.It Fl -verbose
|
.It Fl -verbose
|
||||||
Enables verbose mode without printing version message at the
|
Enables verbose mode without printing version message at the
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue