by adamnemecek · 2mo ago · 0 comments
```
let result = try await Subprocess.run(
.name("ls"),
arguments: ["-la"],
output: .string(limit: 4096)
)print(result.standardOutput)`
```
reminds me that macOS could really use something like powershell (I know you can run powershell on macOS) where you pass around structured data, rather than the endless parsing and reparsing. This is mostly a feature of the shell but you do need some language infrastructure to accomplish it.
And both .NET and COM and the object-oriented history of Windows is probably also why PowerShell will never really feel "at home" on UNIX platforms, for better or worse.
- it was unstable and kept changing (less of an issue now)
- I still need to know bash due to its ubiquity
- it was worse than python for data crunching scripts (ide tooling + my familiarity)
This was several years ago so I'm curious about a more recent perspective
For me the larger problems were the lack of types which in practice meant that I was running into the same problems as with bash.