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>
|
||||
|
||||
* 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
|
||||
Makes Ruby use the
|
||||
.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
|
||||
.Li #!
|
||||
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.
|
||||
.Pp
|
||||
.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;
|
||||
.Bl -hang -offset indent
|
||||
.It Sy 0
|
||||
|
@ -334,8 +334,8 @@ On some systems
|
|||
.Li "$0"
|
||||
does not always contain the full pathname, so you need the
|
||||
.Fl S
|
||||
switch to tell Ruby to search for the script if necessary. To handle
|
||||
embedded spaces or such. A better construct than
|
||||
switch to tell Ruby to search for the script if necessary (to handle embedded
|
||||
spaces and such). A better construct than
|
||||
.Li "$*"
|
||||
would be
|
||||
.Li ${1+"$@"} ,
|
||||
|
@ -343,7 +343,7 @@ but it does not work if the script is being interpreted by
|
|||
.Xr csh 1 .
|
||||
.Pp
|
||||
.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
|
||||
.Li "$VERBOSE"
|
||||
to true. Some methods print extra messages if this variable is true.
|
||||
|
@ -358,11 +358,11 @@ variable to true.
|
|||
.Pp
|
||||
.It Fl x Ns Op Ar directory
|
||||
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 #!
|
||||
and contains the string,
|
||||
.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
|
||||
.Li EOF ,
|
||||
.Li "^D" ( Li "control-D" ) ,
|
||||
|
@ -377,8 +377,8 @@ before executing script.
|
|||
DO NOT USE.
|
||||
.Pp
|
||||
Turns on compiler debug mode. Ruby will print a bunch of internal
|
||||
state messages during compiling scripts. You don't have to specify
|
||||
this switch, unless you are going to debug the Ruby interpreter.
|
||||
state messages during compilation. Only specify this switch you are going to
|
||||
debug the Ruby interpreter.
|
||||
.Pp
|
||||
.It Fl -disable- Ns Ar FEATURE
|
||||
.It Fl -enable- Ns Ar FEATURE
|
||||
|
@ -417,7 +417,7 @@ disassembled instructions
|
|||
.Pp
|
||||
.El
|
||||
.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
|
||||
.It Fl -verbose
|
||||
Enables verbose mode without printing version message at the
|
||||
|
|
Loading…
Add table
Reference in a new issue