I’ve been working with the Bourn shell, the Korn Shell, the Born Again Shell, or Powershell since the early 1990s….and I just found this mistake in a script I wrote last week (you have to use ‘-eq’ for equality comparisons).
if ($ScriptDebugPreference = 'Continue') {
write-host $Message
}
Will I ever learn? I fear the answer is ‘no’