* lib/irb/ext/save-history.rb: identify rightly a status of a
history file that already exists [Bug #7694]. Thanks Nobuhiro IMAI for this patch. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38834 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
e071e13068
commit
e70e46a1be
@ -1,3 +1,9 @@
|
|||||||
|
Tue Jan 15 22:30:04 2013 Keiju Ishitsuka <keiju@ishitsuka.com>
|
||||||
|
|
||||||
|
* lib/irb/ext/save-history.rb: identify rightly a status of a
|
||||||
|
history file that already exists [Bug #7694]. Thanks Nobuhiro IMAI
|
||||||
|
for this patch.
|
||||||
|
|
||||||
Tue Jan 15 15:55:28 2013 Eric Hodel <drbrain@segment7.net>
|
Tue Jan 15 15:55:28 2013 Eric Hodel <drbrain@segment7.net>
|
||||||
|
|
||||||
* doc/syntax/control_expressions.rdoc: Added description of control
|
* doc/syntax/control_expressions.rdoc: Added description of control
|
||||||
|
@ -95,7 +95,7 @@ module IRB
|
|||||||
|
|
||||||
# Change the permission of a file that already exists[BUG #7694]
|
# Change the permission of a file that already exists[BUG #7694]
|
||||||
begin
|
begin
|
||||||
if File.stat(history_file).mode & 066
|
if File.stat(history_file).mode & 066 != 0
|
||||||
File.chmod(0600, history_file)
|
File.chmod(0600, history_file)
|
||||||
end
|
end
|
||||||
rescue Errno::ENOENT
|
rescue Errno::ENOENT
|
||||||
|
Loading…
x
Reference in New Issue
Block a user