From 2a4ba10e2d68c09ddb2e3f5751f5161c00a13bf5 Mon Sep 17 00:00:00 2001 From: Yukihiro Matsumoto Date: Wed, 15 Oct 1997 18:08:37 +0900 Subject: version 1.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 * version 1.0-971015 --- ruby.1 | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'ruby.1') 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. -- cgit v1.2.3