1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/lib
nagachika 82031fa844 merge revision(s) 61149,61150,61151,61167: [Backport #14162]
irb.rb: preserve ARGV on binding.irb

	This is not perfectly good solution (at least we don't want to have ARGV
	as default value of `argv` argument), but unfortunately IRB.setup and
	IRB.parse_opts are public methods and we can't make breaking change to
	those methods.

	We may deprecate using them and then make them private in the future,
	but the removal should not be in Ruby 2.5. So I kept their interface for
	now.

	[Bug #14162] [close GH-1770]

	* properties.

	irb/init.rb: make sure ARGV refers to toplevel one

	irb/test_init.rb: add test to ensure $0

	is not changed.

	At first `ARGV.unshift('something')` was suggested for r61149,
	but it wasn't sufficient because it modifies $0.

	Not only to preserve ARGV, but also r61149 intends to preserve $0.
	This test prevents future breakage of the behavior.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_4@62185 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-02-04 00:39:24 +00:00
..
cgi merge revision(s) 57501,58576: [Backport #13539] 2017-08-05 01:53:44 +00:00
drb Use qualified names 2016-08-30 06:22:30 +00:00
forwardable forwardable/impl.rb 2016-11-20 02:12:48 +00:00
irb merge revision(s) 61149,61150,61151,61167: [Backport #14162] 2018-02-04 00:39:24 +00:00
matrix get rid of ambiguous parentheses warnings 2016-11-29 16:06:54 +00:00
net merge revision(s) 60021: [Backport #13926] 2017-12-20 15:59:14 +00:00
optparse optparse/kwargs.rb 2016-10-14 13:26:13 +00:00
racc Fix grammar errors 2016-11-08 19:55:59 +00:00
rbconfig Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
rdoc * remove trailing spaces. 2016-11-05 09:18:11 +00:00
rexml merge revision(s) 59584: [Backport #13850] 2017-09-08 14:25:52 +00:00
rinda Use qualified names 2016-08-30 06:22:30 +00:00
rss merge revision(s) 58552: [Backport #13531] 2017-07-23 07:20:05 +00:00
rubygems merge revision(s) 60149: [Backport #14003] 2017-10-11 13:48:14 +00:00
shell get rid of ambiguous parentheses warnings 2016-11-29 16:06:54 +00:00
unicode_normalize * common.mk: Updated Unicode version to 9.0.0 [Feature #12513] 2016-09-07 08:13:08 +00:00
uri merge revision(s) 57359: [Backport #13442] 2017-05-09 14:28:21 +00:00
webrick merge revision(s) 60123,60172,60189,60208,60210,60211: [Backport #14005] 2017-12-14 13:31:41 +00:00
yaml * lib/yaml/store.rb (YAML::Store#dump): use table argument instead of @table directly. 2016-09-29 14:40:34 +00:00
abbrev.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
base64.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
benchmark.rb [DOC] Fix typos 2015-12-23 03:43:23 +00:00
cgi.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
cmath.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
csv.rb merge revision(s) 57406: [Backport #13149] 2017-03-11 17:45:18 +00:00
debug.rb Use qualified names 2016-08-30 06:22:30 +00:00
delegate.rb * lib/delegate.rb: Added missing spaces and Removed needless spaces. 2016-10-05 02:36:28 +00:00
drb.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
e2mmap.rb e2mmap.rb: remove old definition 2016-11-06 02:45:14 +00:00
English.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
erb.rb merge revision(s) 58825,58826: [Backport #5339] 2017-07-09 20:06:31 +00:00
fileutils.rb merge revision(s) 57640: [Backport #13214] 2017-05-09 14:56:38 +00:00
find.rb find.rb: raise with the name 2016-02-19 14:38:28 +00:00
forwardable.rb merge revision(s) 57255,57256,57257: [Backport #13111] 2017-03-12 14:57:21 +00:00
getoptlong.rb * tool/mkconfig.rb: use true instead of TRUE. 2016-07-09 03:47:14 +00:00
ipaddr.rb IPAddr#== and IPAddr#<=> no longer raise an exception if coercion fails 2016-11-05 13:53:38 +00:00
irb.rb merge revision(s) 61149,61150,61151,61167: [Backport #14162] 2018-02-04 00:39:24 +00:00
logger.rb logger.rb: fix next rotate time 2016-11-16 06:59:42 +00:00
mathn.rb math.c: Complex sqrt 2016-07-12 14:13:46 +00:00
matrix.rb get rid of test failures on CI introduced at r56927 2016-11-29 15:23:12 +00:00
mkmf.rb merge revision(s) 57446: [Backport #13413] 2017-07-23 07:46:05 +00:00
monitor.rb Use qualified names 2016-08-30 06:22:30 +00:00
mutex_m.rb Use qualified names 2016-08-30 06:22:30 +00:00
observer.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
open-uri.rb * lib/open-uri.rb: Improved documentation grammar for 2016-10-20 07:19:58 +00:00
open3.rb lib/open3: favor symbol proc when possible 2016-11-21 23:13:16 +00:00
optionparser.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
optparse.rb merge revision(s) 59312: [Backport #13739] 2017-07-12 14:06:21 +00:00
ostruct.rb merge revision(s) 57887: [Backport #13159] 2017-12-20 14:56:48 +00:00
pp.rb Add missing :nodoc: comment 2016-12-10 18:23:33 +00:00
prettyprint.rb * lib/open-uri.rb: Remove indicator for "frozen_string_literal: true". 2015-11-10 11:48:14 +00:00
prime.rb * basictest/test.rb: Adjust spaces in class declarations 2016-10-07 05:18:57 +00:00
profile.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
profiler.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
pstore.rb lib/*: remove closed checks 2016-11-21 23:05:41 +00:00
rdoc.rb * lib/rdoc/*, test/rdoc/*: Update rdoc-5.0.0 2016-11-05 09:18:10 +00:00
resolv-replace.rb * lib/resolv-replace.rb: Specify frozen_string_literal: true. 2015-11-14 08:25:30 +00:00
resolv.rb resolv: use safe navigation operator to avoid extra hash lookups 2016-11-23 23:57:30 +00:00
rss.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
rubygems.rb merge revision(s) 60149: [Backport #14003] 2017-10-11 13:48:14 +00:00
scanf.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
securerandom.rb random.c: use bytes 2016-05-10 05:57:11 +00:00
set.rb Add Set#compare_by_identity and Set#compare_by_identity? 2016-11-05 09:23:14 +00:00
shell.rb shell.rb: suppress warnings 2016-11-05 23:58:02 +00:00
shellwords.rb Fix the handling of the backslash in double quotes 2016-11-05 04:58:48 +00:00
singleton.rb Use qualified names 2016-08-30 06:22:30 +00:00
sync.rb * lib/sync.rb: Fix NameError when error. 2016-09-18 10:24:48 +00:00
tempfile.rb merge revision(s) 57972: [Backport #13198] 2017-03-18 12:02:27 +00:00
thwait.rb Use qualified names 2016-08-30 06:22:30 +00:00
time.rb Time.parse's "now" argument as nil works again. 2016-11-05 14:03:34 +00:00
timeout.rb fix a typo [ci skip] 2016-09-07 12:32:02 +00:00
tmpdir.rb * lib/tmpdir.rb: Unify to coding-style for method definition. 2016-02-26 02:11:14 +00:00
tracer.rb Use qualified names 2016-08-30 06:22:30 +00:00
tsort.rb * lib/tsort.rb: Specify frozen_string_literal: true. 2015-11-14 08:46:11 +00:00
ubygems.rb * lib/rubygems.rb, lib/rubygems/*, test/rubygems/*: Update rubygems-2.6.1. 2016-03-04 00:29:40 +00:00
un.rb Octal mode in un.rb 2016-06-28 22:03:00 +00:00
unicode_normalize.rb merge revision(s) 57777: 2017-03-12 16:29:12 +00:00
uri.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
weakref.rb merge revision(s) 57431: 2017-03-11 18:10:55 +00:00
webrick.rb [DOC] Fix typos 2015-12-23 03:43:23 +00:00
yaml.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00