• 1 Post
  • 10 Comments
Joined 2 年前
cake
Cake day: 2023年8月19日

help-circle









  • I can maybe chime in since I’ve used both. Basic operations like if statements, arithmetic and loops are a lot closer to what you’d expect on PS. The barrier to programming in bash vs PS is IMO a bit higher because bash heavily uses symbols for everything. This does make PS way more verbose but more easy to wrap your head around it when unfamiliar with the syntax.

    I prefer bash but for anything bigger than 5 lines I prefer proper scripting language like python or js and making an alias for “node path/to/js/script.js” and using execSync(“program param1 param2”) to run shell commands.

    Long story short, I prefer bash because it’s built in and I know it better than PS, I expect PS guys to feel the same way.