@Lee_Holmes @horse i guess the big difference here is that in linux most 'poorly written shell scripts' use echo to print stuff to the screen, and its hard to mix up 'echo' with 'print to a tty', but with powershell theres several ways and you dont know youve used the wrong one til its too late, heh
Conversation
Notices
-
Embed this notice
Viss (viss@mastodon.social)'s status on Wednesday, 19-Jul-2023 09:26:09 JST Viss -
Embed this notice
Jake Hildreth (acorn) :blacker_heart_outline: (horse@infosec.exchange)'s status on Wednesday, 19-Jul-2023 09:26:09 JST Jake Hildreth (acorn) :blacker_heart_outline: @Viss @Lee_Holmes In this situation, it sounds like echo is a closer analog to Write-Output than to Write-Host (like everyone assumes.) But maybe because bash has been around longer, people almost implicitly understand the usage. Just spitballing here.
-
Embed this notice
Lee Holmes :donor: (lee_holmes@infosec.exchange)'s status on Wednesday, 19-Jul-2023 09:27:00 JST Lee Holmes :donor: @horse @Viss Yup, and 'echo' in PowerShell also does the right thing :)
¯\_(ツ)_/¯
-
Embed this notice
Jake Hildreth (acorn) :blacker_heart_outline: (horse@infosec.exchange)'s status on Wednesday, 19-Jul-2023 09:29:15 JST Jake Hildreth (acorn) :blacker_heart_outline: @Lee_Holmes @Viss Man, I need to read the Powershell Cookbook all the way through instead of just using the bits I need. 🤣
-
Embed this notice
Holir_ (holir_@infosec.exchange)'s status on Wednesday, 19-Jul-2023 22:13:13 JST Holir_ @horse @Lee_Holmes @Viss Yeah, I need to puck up 4th Ed & read it through.
It took me this whole thread to realize, Lee is the author.
-
Embed this notice