Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

REPL: The Readline history file is not created when absent. #2758

Closed
cfa opened this issue Mar 10, 2019 · 1 comment

Comments

Projects
None yet
4 participants
@cfa
Copy link

commented Mar 10, 2019

The Problem

The Readline history file (~/.perl6/rakudo-history) is not created if absent. When present and writable, the log is appended to as expected.

Expected Behavior

Create ~/.perl6/rakudo-history if missing.

Steps to Reproduce

$ mv ~/.perl6/rakudo-history{,.bak}
$ perl6 # enter some input, ^D
$ cat ~/.perl6/rakudo-history
cat: /Users/cfa/.perl6/rakudo-history: No such file or directory
$ touch ~/.perl6/rakudo-history
$ perl6 # enter some input, ^D
$ cat  ~/.perl6/rakudo-history
1
2

(Input is logged; in this case 1 then 2.)

Environment

  • Operating system: macOS.
  • Compiler version (perl6 -v): 2019.03. Readline installed.

@AlexDaniel AlexDaniel added the BLOCKER label Mar 11, 2019

@lucasbuchala lucasbuchala added the REPL label Mar 14, 2019

@lizmat lizmat removed the BLOCKER label Apr 26, 2019

@lizmat

This comment has been minimized.

Copy link
Contributor

commented Apr 26, 2019

Fixed with cb691da by making sure the history file is created regardless of the underlying library used.

@lizmat lizmat closed this Apr 26, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.