AcademySoftwareFoundation / AcademySoftwareFoundation/rez

Shell history not working in cmd.exe or Python REPL

Open
#1,234 10 comments 0 reactions 0 assignees View on GitHub
bug os:windows shell
Dominant language
Python
Stars
1.1k
Forks
374
Avg merge
9d 12h
Merged PRs (30d)
5

Description

Hi,

With Rez 2.103.4 (Python 3.7) on Windows 10, we are finding that using cmd.exe with Rez doesn't let you step through your command history with the up-arrow key. This issue was reported a couple of years ago but seemed to have been fixed in 2.35.0
https://github.com/nerdvegas/rez/issues/616

```
$ rez env
> $ echo Hello World!
> $ # hit up-arrow
> $ # no response.. :(
```

It works as expected in Powershell until you launch a Python REPL process, which it then no longer works inside of.

Any suggestions/help would be very much appreciated! :) Apologies I don't really have the knowledge to look into this myself.

Thanks,
Nikhil

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue on Windows 10 with Rez 2.103.4 using the shown rez env command, then compare command history in cmd.exe, PowerShell, and a Python REPL. Done means the up-arrow retrieves prior commands in the affected cmd.exe and Python REPL contexts.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, shell
Domain
cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.