[SERVER-31077] do not attempt to save history to a blank filename Created: 13/Sep/17 Updated: 06/Dec/22 Resolved: 01/Jun/21 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Shell |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Trivial - P5 |
| Reporter: | Eric Milkie | Assignee: | Backlog - Security Team |
| Resolution: | Won't Fix | Votes: | 0 |
| Labels: | move-sa, neweng | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||
| Assigned Teams: |
Server Security
|
||||||||||||||||
| Participants: | |||||||||||||||||
| Case: | (copied to CRM) | ||||||||||||||||
| Description |
|
As part of exit handling, the shell always calls shellHistoryDone(). However, there are some code paths that do not hit shellHistoryInit(); for such runs of the shell, the shell will output this message on exit:
I can reproduce this by running the shell with this command and then pressing CTRL-C:
|
| Comments |
| Comment by Nic Cottrell [ 24/Apr/19 ] | ||
|
I can also reproduce with a `temp.js` file with contents
|