Skip to content

Warn when specified history file's directory does not exist #830

Closed

Description

@tompng

Description

When the history file is specified by irbrc

IRB.conf[:HISTORY_FILE] = '/dir/does/not/exist/irb_history'

And the directory does not exist, IRB fails to save history at exit.
While loading history, it's better to warn when history dir does not exist.

Originally reported in #828

Behavior of other tools

Pry creates directory by FileUtils.mkdir_p.
bash, sh, zsh does not create directory.

To avoid unintentionally creating directory (example: directory has typo), I think only show warning is better.

Activity

  1. added
    enhancement
    on Jan 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions