-
Notifications
You must be signed in to change notification settings - Fork 124
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
Nov 18th, 2021 Community Call #307
Comments
Congrats on 7.2 LTS! I suppose the obvious next agenda is some of the initial ideas/themes of what the 7.3 roadmap will look like. |
... the world always has been, the world is, and the world always will be a messy place ... so what about a possibility to delete wrong/unneeded History entries (e.g. Typos) Highlight/select it and delete it from the history with a PSReadline KeyHandler? |
@WorrenB PSReadLine doesn't provide a way to delete history entries, because it adds complexity to how the history entries are synced among different sessions today. So if you want to fix up your history, you will need to manually editing the history file, and make sure to close all powershell instances before doing that to avoid those entries lingering in the cache. But there are ways for you to reduce typos in your command-line history -- You can bind the Enter key with You can also leverage # Auto correct 'git cmt' to 'git commit'
Set-PSReadLineOption -CommandValidationHandler {
param([CommandAst]$CommandAst)
switch ($CommandAst.GetCommandName())
{
'git' {
$gitCmd = $CommandAst.CommandElements[1].Extent
switch ($gitCmd.Text)
{
'cmt' {
[Microsoft.PowerShell.PSConsoleReadLine]::Replace(
$gitCmd.StartOffset, $gitCmd.EndOffset - $gitCmd.StartOffset, 'commit')
}
}
}
}
} |
What would help help as well is storing how often a suggestion was accepted so that the first few suggestions can be ordered by 'popularity'. But I understand this of course that the effort for that is quite involving as PowerShell would need another file as a local database for that. |
The suggestion provider is extensible so someone can always fork and make one like that :) |
We do have similar issues opened: |
General topics:
|
Trying to run an EXE which can't start because of a missing DLL on Windows doesn't result in any message on the Error stream. There should be an option to enable that. |
@sba923 That sounds more like an issue with the EXE in question than with PowerShell. If the EXE doesn't output to stderr the PowerShell can't pick up anything on the Error stream. |
The EXE can't display anything 'cos it doesn't even start. The parent process needs to report it cannot start the child, in that case with unhandled exception 0xC0000135 (STATUS_DLL_NOT_FOUND) in that particular case. |
@sba923 can you check out the value of |
Yes, PowerShell does indicate, via But the point is, especially when running interactively, that the failure is "silent." One has to look up the error code to determine what's going on.
My suggestion is inspired by MKS Korn Shell's From set KornShell flags and positional parameters: Of course, that exception is not desirable for scripted / unattended execution, so it should be off by default. It doesn't have to be a GUI-based one, hence my suggestion to output the explanatory text to the |
@sba923 can you reference this in a new issue in the main PowerShell repo to ensure that it can be tracked properly |
I don't think the message box is generated by CMD. Is |
adb is a console app. I will open an issue. |
@sba923 I can confirm the behaviour appears to be different for each shell that executes adb with a missing dll. Once you've opened an issue could you tag me in it or let me know here and I'll add to it with some of the repro steps I've taken. |
Apologies for asking this stupid question but why connect-AzureAD cmdlet is getting failed on PowerShell 7.2? Also would like to know if we can us PowerShell 7 with well known Intune app id in order to interact with Intune backend Graph API for running scripts non interactively? |
@ashisharya65 About the |
My personal preferences for roadmap:
Also it would be great to see Work Groups with new members and working every day. |
Keep in mind! Some Corporation security policies will block PowerShell 7 implementation due to frequent updates. I take it as my responsibility to help in the adoption in order to be implemented correctly to the people to use it. Unfortunately, the issue with 7.2.0 missing the correct help docs URL has stopped my progress to have it roll out to the next release, in order to replace the one currently approved (7.1.3). But WAIT!! I know what I need do in order to get the correct docs for 7.2.. Think outside of the box!! Happy Birthday!! :) |
Agenda:
Pre-load questions/topics please!
The text was updated successfully, but these errors were encountered: