News for hackers. Stuff that matters.
Re:The Biggest Shell Programs in the World (Wiki) by denistaran on Saturday December 07, 2024 @12:35PM (#42351279)
If you’re scripting on Windows, it’s better to use PowerShell instead of batch. Compared to Bash, PowerShell is also better suited for large scripts because it works with objects rather than plain text. This makes handling structured data like JSON, XML, or command outputs much easier, avoiding the need for error-prone text parsing.
Re:The Biggest Shell Programs in the World (Wiki) by shawn_w on Saturday December 07, 2024 @05:26PM (#42353341)
PowerShell is definitely better for new projects, but there's lots of legacy batch files out there.