3 ms·
it doesn't say why. is it a BSD vs GNU thing?
by stOneskull 7y ago
it doesn't say why. is it a BSD vs GNU thing?
- bcruddy 7y agoGNU switched to GPL v3 a while ago, I imagine this is a license thing
- nailer 7y agoIt's a licensing thing yes. Current bash's are GPLv3, zsh is MIT. A pity they didn't make a structured output shell rather than traditional regex scraping but their main concern is compatibility, and zsh fits nicely.
- sarah180 7y agoPowerShell is available for Linux & Mac now if you're looking for a structured, object-oriented shell on your Mac.
- robin_reala 7y agoDoesn’t really fit into the posix compatibility bucket though. If that hadn’t had been a concern then I imagine fish is the most Mac-like shell out there.
- nailer 7y agoI'm not sure how much POSIX matters anymore. Linux and MacOS determine 'standard' Unix behavior by their market share - I can understand disliking this though.
- ChrisSD 7y agoThe issue I have with Powershell is it's full on objected oriented. Personally I'd like something in between. Structured data where the "methods" are the utilities themselves.
- nailer 7y agoMost of the time (though not always) the methods are the utilities. From https://github.com/mikemaccana/powershell-profile/#how-does-powershell-actually-differ-from-bash-day-to-day https://github.com/mikemaccana/powershell-profile/#how-does-... $results = @{} ls -recurse -filter "eslint-scope" | foreach { $file = "${PSItem}\package.json" $version = cat $file | convertfrom-json | select -ExpandProperty version $results.Add($file,$version) } echo $results | format-list You don't have to pipe to 'select', 'where' etc - if you send something to grep or select-string you'll be looking for regexs bash-style.