Project

General

Profile

Actions

Feature #19718

closed

Extend `-0` option

Added by nobu (Nobuyoshi Nakada) over 1 year ago. Updated over 1 year ago.

Status:
Rejected
Assignee:
-
Target version:
-
[ruby-core:113789]

Description

Recently I learned that Perl's -0 option is extended to accept a hexadecimal Unicode codepoint.
However it uses -0x, and since -x is used for shebang and cd, it would cause a backward incompatibility if we will incorporate it as it is.

So I propose that -0uCODEPOINT instead.
This can be extended to comma- or colon-separated codepoint list.

Also, another idea is -0:sepaerator which specifies the separator as-is.
Considering many of modern shells provide escaped string form (e.g., `$'\uHHHH'), this may be a more modern answer, except for NUL cannot be represented.

https://github.com/ruby/ruby/pull/7914

Actions

Also available in: Atom PDF

Like1
Like1Like0Like0Like0Like0