News for hackers. Stuff that matters.
Re:Introducing the Windows Pseudo Console (ConPty) by wtallis on Wednesday August 15, 2018 @10:43PM (#17771506)
It's also the most absurdly verbose shell that exists, which means it sucks as a shell even if it's a half-decent scripting language.
[dead]
Re:Introducing the Windows Pseudo Console (ConPty) by wtallis on Thursday August 16, 2018 @12:06AM (#17771786)
Powershell doesn't get any credit for the tab completion when the default behavior for it just makes the verbosity even more of a nuisance. Having tab completion scroll through all the possible completions one at a time doesn't save keystrokes in most cases, especially when there are dozens or hundreds of options that are really long so when you give up on tab completion and decide to type it out manually in full, you have to erase 10-20 characters. The bash-style completion behavior of completing any unambiguous characters then giving you a list of the possibilities would be even more useful for powershell than it is for bash. But Microsoft once again had to throw in gratuitous differences at the cost of usability.
Re:Introducing the Windows Pseudo Console (ConPty) by nailer on Thursday August 16, 2018 @02:59AM (#17772519)
I prefer the way bash did it too, so I choose to do the same on powershell:

http://stackoverflow.com/questions/39221953/can-i-make-power...

    Set-PSReadlineKeyHandler -Chord Tab -Function MenuComplete
Re:Introducing the Windows Pseudo Console (ConPty) by AnIdiotOnTheNet on Thursday August 16, 2018 @12:17AM (#17771831)
That's subjective opinion. I much prefer the Windows way because I can either specify additional characters or keep hitting tab to until what I want comes up. "Display all 1026 possibilities? (y or n)" certainly isn't an improvement.

Not to mention of course that it tab completes things bash can't and doesn't, and all the other reasons your initial comment was wrong.

Re:Introducing the Windows Pseudo Console (ConPty) by wtallis on Thursday August 16, 2018 @02:13AM (#17772342)
> I much prefer the Windows way because I can either specify additional characters or keep hitting tab to until what I want comes up.

You can't specify additional characters until after you've erased all of the incorrect trailing characters that powershell filled in, and that's where powershell's completion method runs up the keystroke count unreasonably. Your comparison isn't valid if you ignore that aspect. It's also not very subjective at all. We're talking about objectively countable keystrokes.

I will concede that out of the box bash doesn't offer completion for anything other than file and command names, but it does include a programmable completion feature and many packages provide completion rules for their commands. It's up to the distro to determine whether to enable all of those completion rules by default or to stick with the more limited but predictable file-only completion behavior.

Aside from that, I can't see what "all the other reasons your initial comment was wrong" are; you appear to have only cited the existence of concise aliases for some commands as a refutation, and that obviously doesn't put powershell ahead of bash in any way, just lessens the severity of that downside.

Re:Introducing the Windows Pseudo Console (ConPty) by AnIdiotOnTheNet on Thursday August 16, 2018 @07:08AM (#17773605)
> you appear to have only cited the existence of concise aliases for some commands as a refutation

You claim that PowerShell is overly verbose, I point out that it is only verbose if you intentionally make it verbose for readability, you proceed to pick nits and pretend you've done some elaborate study on keystroke counts or something, then resort to tired old Linux evangelism mainstays like blaming the distro.

Re:Introducing the Windows Pseudo Console (ConPty) by contextfree on Friday August 17, 2018 @01:45PM (#17784523)
PS doesn't just have concise aliases for some commands, it has a coherent system of concise aliases, based on the verb-noun convention.