Ignore history file without saving if permissions cannot be changed

Fixes [Ruby Bug 13907]
This commit is contained in:
Jeremy Evans 2019-06-24 11:13:09 -07:00 committed by aycabta
parent f9f02e8216
commit a06301b103

View File

@ -101,6 +101,8 @@ module IRB
File.chmod(0600, history_file)
end
rescue Errno::ENOENT
rescue Errno::EPERM
return
rescue
raise
end