From: akr@fsij•org
To: ruby-dev@ruby-lang.org
Subject: [ruby-dev:50393] [Ruby trunk Bug#14240] warn four special variables: $; $, $/ $\
Date: Tue, 26 Dec 2017 08:08:09 +0000 (UTC) [thread overview]
Message-ID: <redmine.issue-14240.20171226080808.9160e118218718fb@ruby-lang.org> (raw)
In-Reply-To: redmine.issue-14240.20171226080808@ruby-lang.org
Issue #14240 has been reported by akr (Akira Tanaka).
----------------------------------------
Bug #14240: warn four special variables: $; $, $/ $\
https://bugs.ruby-lang.org/issues/14240
* Author: akr (Akira Tanaka)
* Status: Open
* Priority: Normal
* Assignee:
* Target version:
* ruby -v:
* Backport: 2.3: UNKNOWN, 2.4: UNKNOWN, 2.5: UNKNOWN
----------------------------------------
I think the four special variables for separators should be deprecated.
```
$/ input record separator (default argument for "gets")
$\ output record separator ("print" prints it at last)
$, default separator for Array#join and print
$; default separator for String#split
```
I feel many program doesn't work if they are set to non-default value.
Since they are global, not thread local,
we can not change these variables safely in a multi threaded program.
So, I think we should warn them (and delete them in future).
--
https://bugs.ruby-lang.org/
next parent reply other threads:[~2017-12-26 8:08 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <redmine.issue-14240.20171226080808@ruby-lang.org>
2017-12-26 8:08 ` akr [this message]
2017-12-26 8:13 ` [ruby-dev:50394] [Ruby trunk Bug#14240] warn four special variables: $; $, $/ $\ matz
2017-12-26 8:55 ` [ruby-dev:50396] " Eric Wong
2017-12-26 9:23 ` [ruby-dev:50397] Re: [ruby-core:84472] " Tanaka Akira
2017-12-26 19:52 ` [ruby-dev:50400] Re: [ruby-core:84476] " Eric Wong
2017-12-26 11:08 ` [ruby-dev:50398] " shevegen
2017-12-26 21:15 ` [ruby-dev:50401] " eregontp
2018-01-24 8:22 ` [ruby-dev:50425] " akr
2018-01-25 10:10 ` [ruby-dev:50431] " nobu
2019-07-26 23:19 ` [ruby-dev:50820] [Ruby master " merch-redmine
2019-07-27 1:54 ` [ruby-dev:50821] " nobu
2019-07-29 19:03 ` [ruby-dev:50823] " merch-redmine
2019-07-30 1:52 ` [ruby-dev:50824] " nobu
2019-08-26 0:58 ` [ruby-dev:50837] " merch-redmine
2019-08-26 4:33 ` [ruby-dev:50838] " nobu
2019-12-26 2:39 ` [ruby-dev:50902] [Ruby master Feature#14240] " mame
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.ruby-lang.org/en/community/mailing-lists/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=redmine.issue-14240.20171226080808.9160e118218718fb@ruby-lang.org \
--to=ruby-dev@ruby-lang.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).