ruby-dev (Japanese) list archive (unofficial mirror)
 help / color / mirror / Atom feed
* [ruby-dev:50710] [Ruby trunk Bug#15421] erb コマンドの -P オプションの説明
       [not found] <redmine.issue-15421.20181216114928@ruby-lang.org>
@ 2018-12-16 11:49 ` shuujii
  2018-12-16 14:26 ` [ruby-dev:50711] " takashikkbn
  1 sibling, 0 replies; 2+ messages in thread
From: shuujii @ 2018-12-16 11:49 UTC (permalink / raw)
  To: ruby-dev

Issue #15421 has been reported by shuujii (Shuji KOBAYASHI).

----------------------------------------
Bug #15421: erb コマンドの -P オプションの説明
https://bugs.ruby-lang.org/issues/15421

* Author: shuujii (Shuji KOBAYASHI)
* Status: Open
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: ruby 2.6.0rc2 (2018-12-15 trunk 66408) [x86_64-linux]
* Backport: 2.4: UNKNOWN, 2.5: UNKNOWN
----------------------------------------
`erb` コマンドの `-P` オプションは、`%` で始まる行を Ruby コードとして評価する機能を無効にする、という意味だと思うのですが、man ページの説明は以下のようになっていて正しくないように思います。

~~~
-P    Evaluates lines starting with % as Ruby code and removes
      the tailing EOLs.
~~~

また、`erb --help` の説明は以下のようになっていて、行を無視する訳ではないのでこちらもあまり適切ではないように思います。

~~~
-P    ignore lines which start with "%"
~~~

RDoc での trim mode の説明を参考に修正したパッチを添付します。

---Files--------------------------------
improve-description-of-erb-P.patch (1.25 KB)


-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [ruby-dev:50711] [Ruby trunk Bug#15421] erb コマンドの -P オプションの説明
       [not found] <redmine.issue-15421.20181216114928@ruby-lang.org>
  2018-12-16 11:49 ` [ruby-dev:50710] [Ruby trunk Bug#15421] erb コマンドの -P オプションの説明 shuujii
@ 2018-12-16 14:26 ` takashikkbn
  1 sibling, 0 replies; 2+ messages in thread
From: takashikkbn @ 2018-12-16 14:26 UTC (permalink / raw)
  To: ruby-dev

Issue #15421 has been updated by k0kubun (Takashi Kokubun).


おっしゃる通りと思いましたので、そのままパッチを取り込まさせていただきました。

が、パッチ作成者の情報をコミットメッセージに入れ忘れたままコミットしてしまいました…すみません。

----------------------------------------
Bug #15421: erb コマンドの -P オプションの説明
https://bugs.ruby-lang.org/issues/15421#change-75720

* Author: shuujii (Shuji KOBAYASHI)
* Status: Closed
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: ruby 2.6.0rc2 (2018-12-15 trunk 66408) [x86_64-linux]
* Backport: 2.4: UNKNOWN, 2.5: UNKNOWN
----------------------------------------
`erb` コマンドの `-P` オプションは、`%` で始まる行を Ruby コードとして評価する機能を無効にする、という意味だと思うのですが、man ページの説明は以下のようになっていて正しくないように思います。

~~~
-P    Evaluates lines starting with % as Ruby code and removes
      the tailing EOLs.
~~~

また、`erb --help` の説明は以下のようになっていて、行を無視する訳ではないのでこちらもあまり適切ではないように思います。

~~~
-P    ignore lines which start with "%"
~~~

RDoc での trim mode の説明を参考に修正したパッチを添付します。

---Files--------------------------------
improve-description-of-erb-P.patch (1.25 KB)


-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-12-16 14:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <redmine.issue-15421.20181216114928@ruby-lang.org>
2018-12-16 11:49 ` [ruby-dev:50710] [Ruby trunk Bug#15421] erb コマンドの -P オプションの説明 shuujii
2018-12-16 14:26 ` [ruby-dev:50711] " takashikkbn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).