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

Python terminal cmd line recall #88793

Open
jggammon mannequin opened this issue Jul 13, 2021 · 3 comments
Open

Python terminal cmd line recall #88793

jggammon mannequin opened this issue Jul 13, 2021 · 3 comments
Labels
3.9 only security fixes OS-windows type-bug An unexpected behavior, bug, or error

Comments

@jggammon
Copy link
Mannequin

jggammon mannequin commented Jul 13, 2021

BPO 44627
Nosy @pfmoore, @tjguk, @zware, @eryksun, @zooba

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = None
created_at = <Date 2021-07-13.18:23:52.565>
labels = ['type-bug', '3.9', 'OS-windows']
title = 'Python terminal cmd line recall'
updated_at = <Date 2021-07-14.13:39:49.041>
user = 'https://bugs.python.org/jggammon'

bugs.python.org fields:

activity = <Date 2021-07-14.13:39:49.041>
actor = 'jggammon'
assignee = 'none'
closed = False
closed_date = None
closer = None
components = ['Windows']
creation = <Date 2021-07-13.18:23:52.565>
creator = 'jggammon'
dependencies = []
files = []
hgrepos = []
issue_num = 44627
keywords = []
message_count = 3.0
messages = ['397435', '397447', '397479']
nosy_count = 6.0
nosy_names = ['paul.moore', 'tim.golden', 'zach.ware', 'eryksun', 'steve.dower', 'jggammon']
pr_nums = []
priority = 'normal'
resolution = None
stage = None
status = 'open'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue44627'
versions = ['Python 3.9']

@jggammon
Copy link
Mannequin Author

jggammon mannequin commented Jul 13, 2021

Command line recall in python terminal treats strings case insensitively.

Example:
Define a 'dummy' function that takes a string as input. If you run dummy twice with the same input string, but different cases, it only saves one.
>>> dummy("This is a test") # run this
>>> dummy("THIS IS A TEST") # run again w/ different string
Now if you try cmd recall, it only recalls the first.
I believe it should recall both.
Maybe it's treating one as a duplicate - erroneously?

@jggammon jggammon mannequin added 3.9 only security fixes OS-windows type-bug An unexpected behavior, bug, or error labels Jul 13, 2021
@eryksun
Copy link
Contributor

eryksun commented Jul 13, 2021

By default, reading input from the console uses the console's built-in command-line editor. You can clear the console input history with Alt+F7; display the history list with F7; navigate in the history list with the up and down arrow keys, even when the list isn't displayed; recall the first and last entries of the list with page up and page down; and cycle through matching command completions with F8.

Having said that, the new implementation of the console in Windows 10 has a bug in the "Discard Old Duplicates" history option [1]. Try disabling this option in the console's "Properties" dialog, which can be accessed from the Alt+Space control menu.

---
[1] microsoft/terminal#4186

@jggammon
Copy link
Mannequin Author

jggammon mannequin commented Jul 14, 2021

Thanks, I didn't know about the F7 or F8 commands.

My 'Discard Old Duplicates' was already disabled (default?).

John G. Gammon -. .. .... .. .-.. .- -.. -- .. .-. .- .-. ..
This message and any attachments hereto may contain confidential and/or privileged information. If you are not the intended recipient or authorized to receive this for the intended recipient, please advise the sender immediately by reply e-mail and delete this message; you must not use, copy, disclose or take any other action based on this message or any information herein. Thank you for your cooperation.


From: report=bugs.python.org@roundup.psfhosted.org <report=bugs.python.org@roundup.psfhosted.org> on behalf of Eryk Sun <report@bugs.python.org>
Sent: Tuesday, July 13, 2021 16:55
To: jggammon@hotmail.com <jggammon@hotmail.com>
Subject: [bpo-44627] Python terminal cmd line recall

Eryk Sun <eryksun@gmail.com> added the comment:

By default, reading input from the console uses the console's built-in command-line editor. You can clear the console input history with Alt+F7; display the history list with F7; navigate in the history list with the up and down arrow keys, even when the list isn't displayed; recall the first and last entries of the list with page up and page down; and cycle through matching command completions with F8.

Having said that, the new implementation of the console in Windows 10 has a bug in the "Discard Old Duplicates" history option [1]. Try disabling this option in the console's "Properties" dialog, which can be accessed from the Alt+Space control menu.

---
[1] microsoft/terminal#4186

----------
nosy: +eryksun


Python tracker <report@bugs.python.org>
<https://bugs.python.org/issue44627\>


@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.9 only security fixes OS-windows type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

1 participant