ruby-changes:54198
From: k0kubun <ko1@a...>
Date: Sun, 16 Dec 2018 23:24:26 +0900 (JST)
Subject: [ruby-changes:54198] k0kubun:r66419 (trunk): bin/erb: improve documentation of -P flag
k0kubun 2018-12-16 23:24:20 +0900 (Sun, 16 Dec 2018) New Revision: 66419 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=66419 Log: bin/erb: improve documentation of -P flag man/erb.1: ditto [Bug #15421] Modified files: trunk/bin/erb trunk/man/erb.1 Index: man/erb.1 =================================================================== --- man/erb.1 (revision 66418) +++ man/erb.1 (revision 66419) @@ -1,5 +1,5 @@ https://github.com/ruby/ruby/blob/trunk/man/erb.1#L1 .\"Ruby is copyrighted by Yukihiro Matsumoto <matz@n...>. -.Dd October 21, 2017 +.Dd December 16, 2018 .Dt ERB \&1 "Ruby Programmer's Reference Guide" .Os UNIX .Sh NAME @@ -45,9 +45,8 @@ You can omit the one for internal encodi https://github.com/ruby/ruby/blob/trunk/man/erb.1#L45 .Pf ( Li "Encoding.default_internal" ) will be nil. .Pp .It Fl P -Evaluates lines starting with -.Li "%" -as Ruby code and removes the tailing EOLs. +Disables ruby code evaluation for lines beginning with +.Li "%" . .Pp .It Fl S Ar level Specifies the safe level in which eRuby script will run. Index: bin/erb =================================================================== --- bin/erb (revision 66418) +++ bin/erb (revision 66419) @@ -114,9 +114,9 @@ class ERB https://github.com/ruby/ruby/blob/trunk/bin/erb#L114 -d set $DEBUG to true -r library load a library -E ex[:in] set default external/internal encodings - -U set default encoding to UTF-8. + -U set default encoding to UTF-8 -T trim_mode specify trim_mode (0..2, -) - -P ignore lines which start with "%" + -P disable ruby code evaluation for lines beginning with % var=value set variable EOU exit 1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/