summaryrefslogtreecommitdiff
path: root/ruby.1
diff options
context:
space:
mode:
authorYukihiro Matsumoto <matz@ruby-lang.org>1997-10-15 18:08:37 +0900
committerTakashi Kokubun <takashikkbn@gmail.com>2019-08-17 22:09:33 +0900
commit2a4ba10e2d68c09ddb2e3f5751f5161c00a13bf5 (patch)
tree13190036ce10900901e1ff5b559ececbdc05a167 /ruby.1
parent7ad198827b6029d5338c6a2dfe68248da25e9db5 (diff)
version 1.0-971015v1_0_971015
https://cache.ruby-lang.org/pub/ruby/1.0/ruby-1.0-971015.tar.gz Wed Oct 15 18:08:37 1997 Yukihiro Matsumoto <matz@netlab.co.jp> * version 1.0-971015
Diffstat (limited to 'ruby.1')
-rw-r--r--ruby.18
1 files changed, 7 insertions, 1 deletions
diff --git a/ruby.1 b/ruby.1
index b066804716..fe1e76007a 100644
--- a/ruby.1
+++ b/ruby.1
@@ -191,6 +191,7 @@ mode, ruby executes
.ne 1
\& $F = $_.split
at beginning of each loop.
+.fi
.TP
.B -c
causes ruby to check the syntax of the script and exit without
@@ -225,6 +226,7 @@ example:
\& MATZ
\& % cat /tmp/junk.bak
\& matz
+.fi
.TP
.B -I directory
used to tell ruby where to load the library scripts. Directory
@@ -244,6 +246,7 @@ sed -n or awk.
\& while gets
\& ...
\& end
+.fi
.TP
.B -p
acts mostly same as -n switch, but print the value of variable
@@ -253,6 +256,7 @@ example:
.ne 2
\& % echo matz | ruby -p -e '$_.tr! "a-z", "A-Z"'
\& MATZ
+.fi
.TP
.B -r filename
causes ruby to load the file using [4]require. It is useful
@@ -269,6 +273,7 @@ example:
\& #! /usr/local/bin/ruby -s
\& # prints "true" if invoked with `-xyz' switch.
\& print "true\n" if $xyz
+.fi
.TP
.B -S
makes ruby uses the PATH environment variable to search for
@@ -278,8 +283,9 @@ manner:
.nf
.ne 2
\& #! /usr/local/bin/ruby
-\& # This line makes the next one a comment in ruby \
+\& # This line makes the next one a comment in ruby \\
\& exec /usr/local/bin/ruby -S $0 $*
+.fi
On some systems $0 does not always contain the full pathname,
so you need -S switch to tell ruby to search for the script if
necessary.