adamnemecek
Joined 15 years ago
Karma
58,443
Submissions
9,410
Member since
Jul 23
Joined 15 years ago
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.
```
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.
Twitter: https://twitter.com/adamnemecek1
GitHub: https://github.com/adamnemecek