Skip to content

Add unit test to GH #1 #4

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

Open
wants to merge 2 commits into
base: demo-blead
Choose a base branch
from
Open

Conversation

atoomic
Copy link
Owner

@atoomic atoomic commented Oct 5, 2017

You would find attached to this message the extra unit test (as patch #1) to show the failure before/after the fix from James.
Note that the unit test required some minor refactor of Term::ReadLine to mock /dev/tty.

I've pushed to my github branch the test + James commit on top of it to fix the issue,
unfortunately I've not tested this on windows, so test are disabled for now on windows
as the behavior is different.

Perl/perl5@99333cd...atoomic:devel/rt-132008

Note: looks like the upstream git repo from the cpan distribution points to https://github.com/rafl/term-readline which is outdated, not sure if there is a more recent git repo for upstream where we can submit these changes, and update the META informations

jkeenan and others added 2 commits October 5, 2017 11:41
If /dev/tty is inaccessible, redirecting file handles to STDERR:

       open (my $fh, ">&STDERR))

... cannot be done as a 3 arg open or it'll actually try to write to that
file.

Bump $Term::ReadLine::VERSION.

For: RT #132008
Term::ReadLine generates empty &STDERR files

GH #1
atoomic pushed a commit that referenced this pull request Jul 30, 2020
This requires a few small changes.

1. add a new option, which I stored in what looked like one of the
   standard ways
2. only store the item in terminal history if >= this length
3. only add to @hist if >= this length
4. only display hist item if >= this length

I believe #4 is redundant and should be removed, but the code was
already effectively there.
atoomic pushed a commit that referenced this pull request Sep 24, 2020
[DELTA]

1.854 16 September 2020

* Prefer direct notation over indirect (#4)
* Make hint/BS snippets strict compliant.
* trim whitespace
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants