Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
On macOS, after invoking PowerShell Core / with PowerShell Core as the default shell, Perl6's command-line editing is broken #27
Note: Apologies if this isn't the right place to post this; my assumption is that Linenoise is what is being used for command-line editing in Perl 6 on macOS; this post is a modified version of one first posted in the PowerShell repo, PowerShell/PowerShell#7920
Observed in both Terminal.app and iTerm2.
Once you invoke PowerShell in a given Bash session, using the arrow keys in a subsequent invocation of the Perl6 REPL stops working, which prevents navigation inside a line and recall of commands from the history.
Even just invoking PowerShell with
With PowerShell defined as the default shell, using the arrow keys in the Perl6 REPL is unavailable altogether.
By contrast, the command-line editing features of POSIX-like shells is unaffected.
Steps to reproduce
The most recently submitted command should be recalled from the command history.
None of the arrow keys are working.
PowerShell Core v6.1.0 on macOS 10.13.6 Rakudo Star version 2018.06 built on MoarVM version 2018.06 implementing Perl 6.c
referenced this issue
Oct 5, 2018
Thanks for the very thorough report, @mklement0! This is going to be a little tricky since I don't have a macOS machine to develop on, but maybe we can figure this out. Does
No warning or messages are printed.
It happens in both cases.
Yes, it also happens with the example program.