a common tell of ai generated powershell is a script that has dedicated functions to check types, often via several methods, and happily prints the output of the checks to shell. i do not get why it does this but it often adds dozens of lines that really serve no purpose but to make the shell output look fancy
...
I have analysed your idiomatic one-liner and propose adding the following 30 lines into the application Yes/Yes and always accept such idiocy/No
ESCAPE ESCAPE
/clear
I want to update my powershell skill so that it writes idiomatic pipelines and does not introduce idioms from other languages.
[PASTES overeagerness wording from Claude prompting best practices]
I have to put in every claude.md that the shell is zsh. It's reached the point of annoyance I might just go back to bash.
You can use zsh as the default shell and still write your scripts for bash. Actually, it’s an advice I saw more than a couple of times. Otherwise you need to translate the bash-isms when you get bits of code from random places on the Internet.
Just put the right shebang (or ask Claude to do it). What’s the problem?
But maybe that's because I'm the sucker, and since PowerShell is more verbose it costs me more tokens than the terseness of Unix shells. Oh well.
The knowledge that Bash is awful and should be avoided as much as possible is surprisingly and disappointingly rare.