Bruce Payette
Bruce Payette
You can do this sort of thing using the `switch` statement. For example, to output everything between "start" and "stop" do ```powershell $extractedText = switch -regex ($test) { "start" {$print=$true}...
The way to specify hex values in PowerShell is with the `0x` prefix i.e. 0xf3d and specifying a hex value as a color for `Write-Host` already works: ```powershell Write-Host -ForegroundColor...
Some history/context: @mklement0 wrote: > I'm not even sure if statement-terminating errors were ever meant to be They are absolutely by design. Statement terminating exceptions are intended to mimic shell...
@rjmholt `ScriptBlock.Invoke()` doesn't go through the parameter binder which is where named parameter binding is handled. It would be best/easiest/most consistent to allow you to add a scriptblock using the...
FYI - The history command was very minimally designed and implemented in version 1. Basically we wanted to at least be able to do `r N` to rerun command N....
Further on the minimalism thing. Functionality should be designed as a set of composable commands but once that's done, you can selectively add "accelerators" for high-use (typically interactive) cases. This...