r/programming • • Aug 19 '16

PowerShell curl and wget "aliases" do not implement original functionality, just prevent using the real tools.

https://github.com/PowerShell/PowerShell/pull/1901
128 Upvotes

102 comments sorted by

55

u/gfody Aug 19 '16

Powershell is my main shell and I just have this in my profile:

ri alias:ls
ri alias:wget
ri alias:man
ri alias:curl
ri alias:rmdir

C:\Users\Administrator> which wget

/mingw64/bin/wget

I've never had an issue with some script in the wild expecting 'wget' to be invoke-webrequest. The usual practice is to not not use aliases in scripts your publishing.

5

u/Kaelin Aug 19 '16

Excellent comment. Thanks! This is clean.

3

u/halbaradkenafin Aug 20 '16

Just to clarify a little further, ri is the alias for Remove-item. Due to how Powershell does things all aliases (and functions and a variety of other things) are in PSDrives and can be interacted with using most of the *-Item cmdlets.

Also I'll second the "never use aliases in scripts" suggestion, it makes it easier to read and guarantees you won't run into issues on other systems where people might have done similar to OP and removed some of the aliases.

48

u/morelore Aug 19 '16

It's odd to me that Powershell specifically seems so polarizing. The regular dotnet repos don't get this kind of brainless brigading.

8

u/RubyPinch Aug 20 '16

low level of entry to be able to form an opinion, and everyone loves to fight

For other .net repos, you either need compiler knowledge, or to use a .net language (or similar) as your daily driver, to feel like ya got a proper opinion, with this however, everyone uses a shell, so everyone has experience that matters, so everyone feels like they have a proper opinion

1

u/[deleted] Aug 21 '16

That, plus the other shells require a much greater investment to learn--which breeds a lot of cognitive dissonance that has to be justified. :)

101

u/kirbyfan64sos Aug 19 '16

Half this conversation is crazy.

Yes, the aliases are wrong. No one is saying that they're correct. They're saying that removing them would break stuff. It doesn't matter what points anyone else makes; PowerShell scripts exist everywhere. A breaking change like this isn't a small thing.

And then you end up with comments like:

i uninstalled windows and deleted my life

and:

either microsoft users who use powershell alias for curl and wget are dumb or microsoft is dishonest

which contribute nothing to the conversation.

18

u/Pandalicious Aug 19 '16

you can tell when jpsnover replied "fine." that that was the point when he realized he wasn't talking with someone interested in a constructive conversation.

41

u/[deleted] Aug 19 '16

GitHub is social coding, and is essentially the Facebook for Git.

4

u/shevegen Aug 20 '16

That's total crap.

There is no such thing as "social coding". And It is not the "Facebook for Git" in any way either. I don't even use git so why do you imply that all who are on github use git? The issue reporting of github IS good, I love it. But git itself gives me way too much headache.

2

u/[deleted] Aug 20 '16

so why do you imply that all who are on github use git?

I never implied this at all. However, since GitHub only uses Git, essentially anyone who uses it will be using Git (only a handful of the masses do not use GitHub at all for Git). To communicate with others we can use stuff such as IRC, Reddit, or Facebook for example. Think repo.or.cz is to IRC as github.com is to Facebook.

The issue reporting of github IS good, I love it. But git itself gives me way too much headache.

I would recommend http://fossil-scm.org/, it has built-in ticket tracking in the repository and is synchronized with any other repository. Although it seems a bit bland (no fancy CSS currently) you can choose whichever fields you want and how ticket pages are laid out.

24

u/Brian Aug 19 '16

Yeah. A lot of the conversation there seems to be completely missing the point and just blamestorming the original decision.

And I'm not even sure that "the aliases are wrong" is true in general. Adding ones for wget and curl was probably a bad idea, but I quite like the aliases of stuff like ls for Get-ChildItem, despite the fact that the flags are completely different: "ls" is strongly linked to my concept of "Get the contents of the directory", and hardcoded into my muscle memory for that purpose, and isn't really something you'd want to replace with the real ls.

Extending that to other, non-core commands seems much more dubious though - I can see the logic in having an alias, rather than the rather verbose Invoke-WebRequest, and I can even see why someone might have thought "well, a good name would be these ones that people use for the same purposes", following the same logic as ls, but it does break down a bit because there are good reasons to use the real curl / wget instead. But the logic about breaking scripts certainly seems a good reason why it can't be fixed without breaking code.

Presumably it can be worked around with something like:

Remove-Item alias:wget

in scripts which use it.

12

u/[deleted] Aug 19 '16

Adding ones for wget and curl was probably a bad idea, but I quite like the aliases of stuff like ls for Get-ChildItem, despite the fact that the flags are completely different

Similarly, on Linux, /bin/dir exists and behaves like ls.

7

u/Doikor Aug 19 '16

The recommendation is not to use aliases in scripts. So you would have to add that to your profile if you want it to effect the interactive shell.

The ps script analyzer will throw a warning if you try to use them in scripts.

5

u/Brian Aug 19 '16

The recommendation is not to use aliases in scripts

But the aliases still exist, so you will need to remove them before you use the programs, even if you're not using any aliases yourself. The issue isn't that your script is using an alias, it's that your script is using a program that's shadowed by an alias.

And while it may be recommended not to use aliases, it's not something you can rely on, which is why they can't just remove those aliases globally without breaking scripts, even if those scripts don't follow best practices.

1

u/silveryRain Aug 20 '16 edited Aug 20 '16

I think the real issue is that people who write wget in their scripts don't want to run cmdlets and don't expect these aliases. If I have this:

somecmd
wget ...
anothercmd

Here, I'd expect programs I have installed to be invoked, i.e. PATH/somecmd etc. Except instead, aliases are going to hide some of them, in this case wget.

I think one way to solve this would be adding a file-level directive that says "hide any aliases for the entirety of this file". Another would be a way to escape commands that you don't want to be looked up in Alias:, like \wget ... or something.

3

u/[deleted] Aug 20 '16

"ls" is strongly linked to my concept of "Get the contents of the directory", and hardcoded into my muscle memory for that purpose, and isn't really something you'd want to replace with the real ls.

Ugh.. this is more an indication that names like Get-ChildItem were absolutely insane to begin with. So their solution is to hijack common names that are used precisely because they are short an easy to type and enter you muscle memory. It's crazy on both sides of the fence.

Extending that to other, non-core commands seems much more dubious though - I can see the logic in having an alias, rather than the rather verbose Invoke-WebRequest [...]

Again.. what's the point of these names if you feel you have to alias them to be useful? Seriously.. who sat down and thought 'Invoke-WebRequest' was anywhere close to reasonable?

A decent fix: if there is a 'wget.exe' in the PATH, then don't create the stupid default alias. Or you could have a 'System-Options-PowerShell-TurnOff-DefaultAliases' command, which someone else can then promptly alias to 'setopt'.

8

u/Brian Aug 20 '16

A decent fix: if there is a 'wget.exe' in the PATH, then don't create the stupid default alias.

That's a terrible idea. The last thing you want is scripts suddenly breaking just because you've added something to the path, or deploy to a computer that has it in the path. Just removing them altogether would be better than that - same breakage, but way more consistent and traceable, and prevents future usage.

Or you could have a 'System-Options-PowerShell-TurnOff-DefaultAliases' command

Or just remove the aliases you don't want, which is the workaround I mentioned.

2

u/[deleted] Aug 20 '16

The last thing you want is scripts suddenly breaking just because you've added something to the path,

By some measure, those scripts are already broken for using the alias anyways. This would be expected behaviour. The real benefit is to the command line users, not to the 'almost a programming language' users.

Or just remove the aliases you don't want, which is the workaround I mentioned.

Is that better? I'm not familiar enough with PS, if you remove them, and then run a cmdlet from the command line, does the removed alias propagate to the script? In other words, wouldn't a script using the alias fail in this case anyways?

At least with an option, you could get more refined behaviour, like: "default aliases for cmdlets but PATH dominant behavior for cmdline."

2

u/Brian Aug 20 '16

By some measure, those scripts are already broken for using the alias anyways

But not by any practical measure: they'll do what the person who wrote them intended to do, and what they did actually do in their testing. Breaking that is certainly a bigger category of breakage.

The real benefit is to the command line users

Yes, that's the point of having an alias. It's not intended to be used in scripts, but in practice, people will do it.

if you remove them, and then run a cmdlet from the command line,

I'm talking about removing them in the script. It'd have exactly the same effect your hypothetical System-Options-PowerShell-TurnOff-DefaultAliases would have, except restricted to certain aliases.

default aliases for cmdlets but PATH dominant behavior for cmdline

That actually seems backwards. If anything, it's the scripts / cmdlets where you want to remove aliases - this is already strongly discouraged, whereas cmdline is where they're useful (and where breakage isn't really an issue anyway).

1

u/[deleted] Aug 20 '16

and where breakage isn't really an issue anyway

Except for what started this whole thing. If they didn't have default aliases that weren't strictly containing default parameters you wouldn't need a backwards option to regain sanity.

2

u/Brian Aug 20 '16

Except for what started this whole thing

Not really - if it were purely restricted to the interactive commandline, there wouldn't really be much of a problem with breaking it - people would just get an error and relearn, no backwards compatibility needed. It's because it is used in scripts that the problem exists.

2

u/Tarmen Aug 20 '16

The point is that people that use shells but might not know how to do all the things can easily discover commands. To find a command you can simply search for the noun or verb including blobs. Doing even slightly complex stuff in bash quickly becomes an exercise in googling for me because I am not willing to read the man page to find one of several dozen flags with something like ls.

You also could just use wget.exe to execute wget which isn't great but works perfectly fine.

2

u/[deleted] Aug 20 '16

The point is that people that use shells but might not know how to do all the things can easily discover commands.

Was discoverability that much of an issue in the first place? Is 'Invoke-WebRequest' somehow more natural than 'Get-Web' or 'Get-FromWeb' or even just 'Get-HTTP' ? How are people just not having to google all those commands anyways? And since any provider can drop a cmdlet into your namespace, it's not like this is some curated list designed to be discoverable.

It's still just a big pile of commands. The bigger it gets, the more useless the naming scheme is. What's amazingly, braindamagingly stupid about the whole Noun-Verb thing is that it makes tab-completion useless. Get-<tab> produces a list that is impossible to use and you now have to type most of the command before tab-completion is anything of a speedup. (PS for ActiveDirectory management makes me want to tear my hair out).

Doing even slightly complex stuff in bash quickly becomes an exercise in googling for me because I am not willing to read the man page to find one of several dozen flags with something like ls.

And the massive amount of options and flags in PS is somehow better? And the 'Noun-Verb' syntax helps you avoid googling? The page for 'get-help Get-ChildItem -full' isn't exactly a short read, either. Seriously.. go check. Also, that's not all the options it will accept, run a 'get-help CommonParameters' to see all the other options you could pass.

I like PS on windows fine enough.. but it's typical microsoft: build on some theoretical idea without any real-world research, release it, then put zero effort into maintaining the ecosystem for your developers or users. PS isn't good, but it's the best you can get on that platform.

2

u/contextfree Aug 20 '16

unfortunately it's verb-noun not noun-verb. Nitpicking, except if it actually were noun-verb it would be much better for tab completion because you're more likely to think "here's an object type, what all can I do with it" than you are to think "I'd like to know everything I can 'remove'". Similar principle to completion in OO method call syntax, or right-click menus in a UI.

I do think the convention helps for remembering aliases though.

1

u/contextfree Aug 20 '16

Powershell has its own "native" aliases for most common commands though, e.g. get-childitem -> gci, invoke-webrequest -> iwr, etc.

One nice thing about the native command names and aliases is that they follow fairly consistent patterns. The long names are verb-noun, with there being a smallish number of common verbs, and then the aliases are formed by joining a 1-2 letter abbreviation for the verb with a 2-4 letter abbreviation for the noun. So for example if you know "gal" for get-alias and "ni" for new-item, you can correctly guess there's also a "nal" for new-alias and "gi" for get-item.

0

u/[deleted] Aug 20 '16

[deleted]

2

u/[deleted] Aug 21 '16 edited Aug 21 '16

both of which are most likely obvious based on what you're trying to do.

Depending on your level of experience. I would not have made the leap to check 'Invoke-' as a verb category unless I saw it previously. Then there's stuff like.. tell me what these "obvious self-documenting" differences between 'Convert-String' and 'ConvertFrom-String' are?

The only decent argument is self-discoverability.. but since you now have 100s of 'Get-*' cmdlets (or I do because of ActiveDirectory), it destroys itself again.

It's a good idea in 1.0.. but it becomes unwieldy around 5.0. It's predictable, and part of the reason I'm never interested in getting deeply into any MSFT technologies; save C#, and even then, only because COM is actually way better there than in C++.

Anyways.. they put comments in these languages for a reason. Use them even if it seems obvious to you.

expressive - there are only so many commands you can make with less than five characters without compromising the above points.

Well.. it's not like unix command names are planned out or anything. Linux has (generally) always had third party software installed in system binary directories, so names tend to be more creatively selected than they are for their expressiveness. I'm not defending this or saying it's in any way better, just that it's not fooling itself about what a system eventually becomes.

Extract-Archive -ListFiles (not a real command btw)

Yea, because it's this:

$shell = new-object -com shell.application
$zip = $shell.NameSpace(“C:\istolethiscode.zip”)
foreach($item in $zip.items())
{
    $shell.Namespace(“C:\temp\orsomething”).copyhere($item)
}

Lost that Verb-Noun clarity pretty quickly. Sure.. I hear ya, "make your own CmdLet then." Except, this works with any archive that has a built in shell provider, for archives that don't, you'll need to create some bastardized cmdlet that can call the archive program (if it exists) and set the exec options. Also, unless the archiver can produce PS "object streams" you're straight back to parsing regular text again to provide any comprehensive interface anyways.

One could also argue that 'Extract-Archive -ListFiles' should just use Get-ChildItem with Set-Location somehow allowing you to enter the archive. Again.. only works for archives with shell providers.

If you want a shell.. use a shell. If you want a programming language, use a programming language. If they really want to help me, make csc.exe available in the system path on all installs by default.

It's a shoehorn. It's better than cmd.exe.. but it comes with it's own new set of warts; of which aliases are newly discovered to be one. Pretty typical for stuff developed during Ballmer's 14 year terror campaign.

13

u/CaptainJaXon Aug 19 '16

I hate that there's no way to remove, downvote, or squelch off topic comments like that.

I really can't stand the old issues with

+1

+1

+1

+1

+1

+1

5

u/[deleted] Aug 19 '16

I am surprised GitHub did not go through everything and just merged/deleted/compacted the +1s/-1s.

5

u/sex_and_cannabis Aug 20 '16

Yes, the aliases are wrong. No one is saying that they're correct. They're saying that removing them would break stuff. It doesn't matter what points anyone else makes; PowerShell scripts exist everywhere. A breaking change like this isn't a small thing.

To me, it's impressive that the, "Okay, so it breaks" crowd isn't getting tossed out of the conversation hosted by Microsoft. Even your post doesn't say that the breaking change isn't the right decision.

As for my opinion, I'm not sure why deprecation isn't getting more love. "It broke when I did a major upgrade and after I was told for 2 versions it would break" is more palatable than "It broke."

4

u/[deleted] Aug 20 '16

And then you end up with comments like:

Because idiots feel the need to link the issue on Reddit, bringing in the useless rabble.

Never, ever, link an issue on reddit. Just don't. You're ruining things for everyone. If you see one posted, downvote it, and tell people off for posting it. It's incredibly destructive to the motivation for the maintainers to deal with these kinds of torrents of bullshit.

1

u/Lorrang Aug 20 '16

They're saying that removing them would break stuff.

The only reasonable solution now is to enable those aliases only for the Windows platform

-18

u/hu6Bi5To Aug 19 '16

And spreading to more platforms, preventing these tools being used in more places.

Classic: embrace, extend, extinguish.

-6

u/Xanza Aug 19 '16

That depends on where you sit I'd like to think. While the comments have absolutely no intellectual value it's a far stretch to say they add NOTHING to the conversation. The purpose is to gather public opinion. Obviously these commenters are in opposition to the originally proposed changes of adding these aliases. So while I agree that they don't contribute much I disagree that they don't contribute anything at all.

12

u/drysart Aug 19 '16

The comments have nothing to do with public opinion, and most of them don't even understand the issue at all.

In fact your comment, here, the one I'm replying to, doesn't understand the issue either; because the issue isn't about adding aliases for curl and wget. It's about removing them, as they've existed since Powershell 1.0 several years ago.

All the comments about "no those are dumb aliases" aren't adding anything new. Everyone involved knows the aliases are dumb. All the comments about 'how this is just another example of embrace, extend, extinguish' aren't adding anything new, because the conversation is about how to responsibly remove them without breaking existing scripts.

-5

u/Xanza Aug 19 '16

The comments have nothing to do with public opinion

They are public opinion? Just because you happen to disagree with them means nothing.

5

u/drysart Aug 19 '16

You said this:

The purpose is to gather public opinion.

I maintain that, no, comments on a pull request are not there to "gather public opinion". Especially when the comments are talking about things that aren't even related to the pull request.

-9

u/Xanza Aug 19 '16

The entire purpose of a pull request is to gather public opinion.... If you think it's not, you obviously haven't been in software development for very long and therefore your opinion here, doesn't really matter for much.

8

u/yawaramin Aug 20 '16

Uhh ... no. The purpose of a pull request is to review the code--for errors, style conformance, strategic and tactical coding decisions, etc. That's it. If you want to philosophise about the right or wrong of PS's aliasing policies, the mailing list or an issue is the place to do that.

-4

u/Xanza Aug 20 '16 edited Aug 20 '16

The entire point of ANYTHING to do with social coding is the social aspect. Why that's an elusive concept for you is pretty telling.

Pull requests let you tell others about changes you've pushed to a GitHub repository. Once a pull request is sent, interested parties can review the set of changes, discuss potential modifications, and even push follow-up commits if necessary.

AKA, discussion. You're entitled to believe whatever you want though, reguardless of misguided it is. I mean Git is entirely meant for collaboration. Did you think that happened without discussion? It's pretty interesting that you could even live in this day and age and believe that something as social as a pull request isn't social.

2

u/yawaramin Aug 20 '16

Whoa, easy there. I know what git is meant for. I think you're getting carried away by the 'social' buzzword and the cute emoji. Code review is code review no matter what platform you're on. Discussion is obviously a by-product of that, which is completely normal. What's not desirable in a code review, as has been pointed out here, is commentary which doesn't provide actual feedback about the code. You want to discuss the merits of removing aliases, that's fine, just do it in the issue or a mailing list.

-2

u/Xanza Aug 20 '16

Discussion is obviously a by-product of that, which is completely normal.

It's kind of interesting that you would agree while simultaneously trying to disagree.

What's not desirable in a code review, as has been pointed out here, is commentary which doesn't provide actual feedback about the code.

Feedback is an incredibly general term. As is social. (calling it a buzzword doesn't discount its meaning) Helpful feedback is even more broad. Take this comment for example;

To be honest, I don't see how this discussion about how many people might depend on these aliases is relevant. The story as I see it is that a few years ago you decided to usurp the names of some well known tools, in the full knowledge that doing so would break those tools. You have then ignored bug reports about this for years. You really can't deny that you knew a long time ago that what you did amounted to hostile behaviour towards other people.

It has very little to do with the pull request and the code up for merger which by your opinion isn't a contributing viewpoint--however, it's an incredibly insightful and relevant to the point the pull request is making. Therefore it gives the maintainers of the repository insight into why the pull request is a big deal. Then social indicators allow the same maintainers to guage receptiveness of the ideals or views expressed in the comment.

The point I was making is that just because the comment isn't necessarily on topic for the pull request doesn't mean it doesn't contribute to the issue. It's just a little off topic to the exact nature of the pull request. That doesn't mean the discussion isn't valuable for the maintainers. Even farther removed, the original point I was making is that pull requests are discussions and therefore by natural law are used for public opinion. As is any form of social interaction. So much so that it caused Github to implement the social icons to keep discussion succinct. Public opinion includes the maintainers who have total control over whether or not a pull request is merged--so it's pretty important to every issue and every pull request.

→ More replies (0)

10

u/[deleted] Aug 19 '16

Does PowerShell have shebangs? Because one could just have a #!/bin/foo -p for a kind of newer and more portable PowerShell script. This switch could just disable all the nasty things about PowerShell such as default aliases. Then eventually old behavior can be deprecated and eventually removed.

10

u/drysart Aug 19 '16

No, but that appears to be the general sort of solution they're currently leaning toward. It seems to me that it's the right solution to the problem.

2

u/Tarmen Aug 20 '16

Wait, currently all powershell scripts have a .ps1 extension which has a version number in it. Why not group a bunch of incompatible changes and introduce .ps2?

1

u/moswald Aug 23 '16

That would be great, but it doesn't fix the other half of the problem which is the aliases are available by default at the command-line.

1

u/[deleted] Aug 20 '16

Reminds me of the #!/bin/sh and #!/bin/bash confusion in the past (one was using #!/bin/sh yet used bash features, which completely broke dash). A script was made to find broken scripts and change them to use bash instead if it was a bit too complex to make them POSIX compliant (most scripts just used alternative syntax in most cases).

2

u/cryo Aug 20 '16

No, Windows doesn't have shebangs in general, so there is no way to execute scripts with arbitrary processors. It sucks, but it's just one more to the long list of things that suck on Windows :(

1

u/Fringe_Worthy Aug 19 '16

And then later we have #!/bin/foo -pp for even newer scripts?

1

u/[deleted] Aug 19 '16

Well, one would hope that -p was designed correctly where it would not be needed at all.

27

u/vivainio Aug 19 '16

Checked it out just to see whether someone mentioned "Embrace, Extend, Extinguish" in the comments. Wasn't disappointed.

1

u/leafsleep Aug 20 '16

Ends the comment with "disregard any words that seem harsh". What a fucker.

6

u/damiankw Aug 19 '16

Are you talking about original functionality from Powershell, or from Linux? The 'known issue' clearly says that there are a lot of commands which pass directly through to the Linux processor, instead of using the Powershell one .. these must be a function of that. They also ask for any suggestions on how this should work.

For me, both commands work as they should on linux, within Powershell .. on Ubuntu 14.04

0

u/[deleted] Aug 20 '16

[deleted]

1

u/captainramen Aug 21 '16

You're missing the point. I would want my PowerShell scripts to be xplat. This makes it more difficult.

0

u/[deleted] Aug 19 '16

[deleted]

25

u/BezierPatch Aug 19 '16

Huh?

The only bureaucracy is "Ok, I agree we should change it, but as people now rely on it we need to plan deprecation."

And then a few dozen "OMG WHY DID YOU DO IT IN THE FIRST PLACE"

0

u/[deleted] Aug 19 '16

[deleted]

7

u/BezierPatch Aug 19 '16

Why do you even think the current employees know off the top of their head?

And how does spending time investigating that in detail help resolve the issue? Wouldn't you rather they got on with fixing it instead of doing a deep dive into the past?

0

u/[deleted] Aug 19 '16

[deleted]

3

u/BezierPatch Aug 19 '16

I think I will return to my first statement:

Huh?

0

u/[deleted] Aug 19 '16

[deleted]

2

u/[deleted] Aug 19 '16

O man, don't ever submit changes to the linux kernel, you might have to wait weeks for your patch to reviewed by the subsystem maintainer before it gets passed on to a higher level maintainer and finally merged in later by Linus.

0

u/[deleted] Aug 19 '16

[deleted]

5

u/malstank Aug 20 '16

You're not getting downvoted because you're negative towards Microsoft, you're getting downvoted because you're coming across as an entitled elitist cunt wad.

-2

u/[deleted] Aug 19 '16

Were you aware that all your sentences start on a new line?

1

u/emergent_properties Aug 19 '16

I group them based on how close they fit to the same context.

If it's a clearly different way of talking or subject, I separate.

IMO, doing so increases readability.

3

u/malstank Aug 20 '16

It makes you read like william shatner.

0

u/[deleted] Aug 19 '16

[deleted]

6

u/[deleted] Aug 19 '16

'if post is negative about Microsoft, downvote' action begins.

You were arguing against corporate bureaucracy, I argue its exactly the same as Linux maintainership. I am not arguing its bad.

0

u/[deleted] Aug 19 '16

[deleted]

7

u/malstank Aug 20 '16

"new" being almost a decade old. It's obvious you don't even understand the issue.

1

u/BezierPatch Aug 20 '16

Did you just delete and repost your comment to avoid my reply?

1

u/mercdernerlds Aug 20 '16

I think you end most of your posts in this thread with "Pathetic.", and to me it makes your already invective, accusatory, and unproductive posts even more disrespectful. You could have left even that one word out and your posts would have been loads better at exhibiting any sort of base-level respect for your peers in this thread. Though still pretty disrespectful, IMHO.

If you look in the thread on GitHub, the Microsoft folks have said, more or less: "yeah you're totally right that's an issue, let's talk about how to fix it. we need to carefully consider all the options because we want to fix it right, rather than fix it fast". I'm not sure I could have maintained their level of composure and respectfulness in the face of clearly rude posts. I would hazard a guess (based on what I've seen of your social skills so far) that you would not be able to either, but I would love it if you would prove me wrong, truly.

Also, please do not try to pretend that the open source community does not have its own challenges in relation to what you call "bureaucracy". Large software projects require processes (of various kinds) for discussion and contribution lest they fall into chaos, which breeds bugs and broken code. Which is more or less the process that Microsoft is engaging in right now.

Anyway, have a nice day.

4

u/[deleted] Aug 19 '16

What is this "Contribution License Agreement"?

25

u/drysart Aug 19 '16

When you make a significant contribution to a project, Microsoft requires you to sign an agreement basically stating that you're licensing your contributions per the project's license, and that you're legally entitled to do so (i.e., that your employer doesn't have a claim of ownership over code you write, etc.).

Before someone gets up in arms about it thinking Microsoft is trying to screw people, the FSF does the same thing on their GNU projects.

3

u/mpact0 Aug 19 '16

You mean its as simple as removing some aliases? This is super simple.

4

u/c0m4 Aug 19 '16

Should they remove the aliases? Yes - When poweshell hits version 6. Untill then, just remove them in your profile if you need the real curl or wget. Problem solved.

2

u/Tarmen Aug 20 '16

I mean, they also only exist on windows by default and there you can just add .exe to force the binary.

2

u/Gotebe Aug 20 '16

Wow...

  • Remove-Item Alias:whatever

  • Don't use Powershell

Nooo, I want to whineeeeee

What the actual fuck people?!

-1

u/shahid-pk Aug 20 '16 edited Aug 20 '16

The guy who has send this pull request wanted this to happen. He is a mozilla employee. He knows how breaking changes work better than anyone, but he knew what reaction will come from those who are looking for problems in something that they already love to hate. Being a professional working for mozilla he should know that any breaking change no matter how much correct or perfect it is goes through RFC a proper process , can he do something like this and remove a feature/behavior from rust or firefox browser without an RFC or following the process ?? i don't think so. Also it is kind of rude to just come out of nowhere and delete something without even discussing it and argue that this should be merged immediately.

3

u/bastardoperator Aug 20 '16

More importantly he's the author of curl. Microsoft reaps what it sows. They chose to use the name of someone else's extremely popular software. Why should the author of curl have to field requests from microsoft customers when the curl command in powershell doesn't work as they would expect for the past 7 years?

Can you imagine if RedHat started shipping these aliases in .bashrc

alias excel='openoffice-calc'
alias outlook='thunderbird'

Maybe Apple should ship these

alias powerpoint='keynote'
alias edge='safari'

Microsoft legal would lose their minds...

I think the curl author has the right to ask that his software's name be removed immediately. From his standpoint they're breaking his software and they don't seem to give a fuck and haven't for years. He's supposed to care about their RFC's which he can't even file because he doesn't work for microsoft and isn't part of the committee?

Now you're accusing the guy of wanting this to happen because he's a mozilla employee and should understand? I think he does understand, I think it's you who may not.

0

u/shahid-pk Aug 21 '16

More importantly he's the author of curl. Microsoft reaps what it sows. They chose to use the name of someone else's extremely popular software. Why should the author of curl have to field requests from microsoft customers when the curl command in powershell doesn't work as they would expect for the past 7 years?

There was no way of doing anything about it in past 7 years now they have opened themselves to discuss this, they offered discussion about a mistake which they made 7 years ago (a decision which was not even made by the current staff). No matter how bad that mistake was it has been seven years since this mistake was made , and thousands and thousands of developers have either worked around this mistake or are used to it. You can't just break all previous versions of a program especially when you are an enterprise.

Can you imagine if RedHat started shipping these aliases in .bashrc alias excel='openoffice-calc' alias outlook='thunderbird' Maybe Apple should ship these alias powerpoint='keynote' alias edge='safari'

Yes but if after some years apple and redhat offers to discuss this matter and want to correct this mistake MS won't just send a pull request and delete those aliases and break their customers i am sure that would be naive.

I think the curl author has the right to ask that his software's name be removed immediately. From his standpoint they're breaking his software and they don't seem to give a fuck and haven't for years. He's supposed to care about their RFC's which he can't even file because he doesn't work for Microsoft and isn't part of the committee?

yes everyone does have the right to ask anything but he was not asking he was doing without even discussing it. Without even caring about breaking users which he admitted he is doing. I can't see this as anything but personal anger which in my opinion is naive.

Now you're accusing the guy of wanting this to happen because he's a mozilla employee and should understand? I think he does understand, I think it's you who may not.

I uderstand when someone says to me "yes this is problem but we have millions of customers around this problem now" so we will need to come up with an idea. We are 1 day old in this new open source thing we need time: i will understand this and understand that 7 years ago things were different now things might change i should listen to them and follow a proper channel. I can make an issue an raise my point but no i will go and delete what i want to delete and link that pr in reddit for pr. If i do this i don't want my pr to get merged i want them to loose i want them to pay for their mistake and i want them not to correct their mistake.

Thanks

0

u/bastardoperator Aug 21 '16

Blah, blah, blah... You're a Microsoft apologist. The creator of powershell (Jeffrey Snover) is commenting in the pull request yet you claim the staff is not "current". Why do you even have an opinion on this when you don't know what you're talking about?

The curl author sent a pull request with a very clear message, and asked people to stay civil. You claim it's personal anger. I see nothing but a civil discussion. The creator of powershell agreed that the aliases need to go too.

You don't seem to care at all about the problems this created for the curl project. Just nope, we can't break windows users even if we did steal and violate copyright law. That's basically what you're saying... It's okay to steal if you're a big company.

1

u/shahid-pk Aug 21 '16

calm down , calm down man. What are you going to do kill me or something. And accusing someone who talks rationally being an organizations apologists is foolish. I am not apologizing for anyone , i told you that it was mistake (whatever you may call it and they want to correct it without breaking millions of users) but you and that MR from Mozzilla wants no discussion , no thoughts and no ideas , this is not how software works , you don't make another mistake to correct a previous mistake. This should be corrected but not like this. Breaking changes has a proper channel it should go through that. And please don't be an apologist for someone's unprofessional behavior. That Mozzilla employee will never do something like this without discussing and without going through proper channel at his own company , you can try and delete something that a thousand people don't like in rust or firefox and make sure that is a breaking change and see what happens next.

creator of powershell (Jeffrey Snover) is commenting in the pull request yet you claim the staff is not "current"

I was talking about people at Microsoft that are changing the direction of the entire company , from a corporate os based to cloud, service based. Those people were different in that time and their business strategies were different.

thanks

-1

u/bastardoperator Aug 21 '16

Like I said. You think it's okay for Microsoft to break curl, but not okay for curl to break Microsoft. It's a double standard. Why is that? Why should one suffer from the others mistakes? The PR created a discussion. You're claiming no one wants a discussion and that makes you a liar because that's exactly what it happening.

You talk about the proper channels. There is no proper channel. What you have now is the only channel. A civil debate that microsoft is participating in. You keep talking about his employer, it's fucking irrelevant. He's the author curl and it's probably why Mozilla picked him, he's smart. You claim rust won't deprecate a feature without committee. They we're smart enough to think about this exact situation:

https://github.com/rust-lang/rfcs/blob/master/text/1270-deprecation.md

Microsoft wants people to think powershell runs on a bazillion computers but I've yet to see anything significant created in or used by it. I'm willing to bet the technology in curl reaches more people, it's a well known and respected c lib used by technology powerhouses:

https://curl.haxx.se/docs/companies.html

New? Nadella has worked at Microsoft since 92, that's 23-24 years. You just keep rattling the same "they can't break it". You're completely missing the point and clearly you're have no idea what you're talking about. Good day, I'm over feeding the fanboy trolls. You might not care about theft or stealing, I do.

1

u/shahid-pk Aug 22 '16 edited Aug 22 '16

Like I said. You think it's okay for Microsoft to break curl, but not okay for curl to break Microsoft. It's a double standard. Why is that?

where did i said that, i just said breaking millions of users is very bad , its not about curl or Microsoft. You are making things up.

You claim rust won't deprecate a feature without committee

Where did i said that ?. I said they won't deprecate anything or take a breaking change without going through a proper channel or process. Why are you making things up ?. I never said they would never deprecate anything. I said can this Mr who want to break millions of servers running Windows server and billions of desktop computers, follow a process (like how it is documented in the repository docs). And every and any one can request an RFC just like how you do it in rust , take look here https://github.com/PowerShell/PowerShell-RFC .

Microsoft wants people to think power shell runs on a bazillion computers but I've yet to see anything significant created in or used by it. I'm willing to bet the technology in curl reaches more people,

I can say the same about curl too then. But i won't say it i am realistic. I don't want to argue on something that is purely fictional and based on personal prediction.

New? Nadella has worked at Microsoft since 92, that's 23-24 years. You just keep rattling the same "they can't break it". You're completely missing the point

Nadella was not CEO 23 years ago and he was not making decisions. and where did i said they won't break it or argued they should never break it. I said breaking changes goes through proper process that should be followed. Powershell repo has documented that process , just like how rust does it (or any big software for that matter) but Mr Mozilla employee never bothered to follow or at least take a look at that process. Try to understand this is not about Microsoft or someone's beloved curl anymore . It is about those millions of users , and again i am not saying this should not happen, this should happen but after following the correct process, deprecating it in one version through a warning and then removing it or any other acceptable way. You and that MR from Mozilla need to show some patience.

Last thing is i am arguing that a big firm employee should understand how software breaking changes work, that is completely a professional overview ignoring any company involved , if i see a professional acting very different (like not following a stipulated process in someone else project but follow it in his own) i would say again and again that professional want the software to suffer that he is trying to contribute to. I think breaking changes to any popular software should go through a process, making decision about something that has more than a billion installs is a difficult thing , it should be well thought out. . But you are trying to make this a Microsoft vs curl problem.

0

u/cryo Aug 20 '16

The same with cat, which is arguably mostly used to output a single file, but the PowerShell alias (to Gec-Content) doesn't actually con**cat* anything, which is rather frustrating the few times you need that. Especially since Windows really has no built-in easy way to do this.

Well, with Win 10 Anniversary you can install the Linux subsyststem with Ubuntu, giving you a bash that can start the actual cat command. Better than nothing.

4

u/riwtrz Aug 20 '16

Get-Content takes an array of paths.

PS> echo foo >1.txt
PS> echo bar >2.txt
PS> cat 1.txt,2.txt
foo
bar

2

u/PeterI Aug 20 '16

yes it does have a concat command pretty sure it's been there since msdos 1. copy f1.txt + f2.txt f3.txt

-10

u/shotxxxx Aug 20 '16 edited Aug 21 '16

Powershell, the tranny of command line interfaces.

Edit: What? It's quite astute an observation.

Tries to be something else. Requires extreme surgical procedures to approximate the target and ends up infertile, after all.

The users of it are also "prison gay" for it because they had no other choice because they weren't strong enough to better themselves by switching to something more *nixy.

0

u/[deleted] Aug 19 '16

[deleted]

25

u/blue_2501 Aug 20 '16

Yeah, the issue is already on a knife's edge. MS employees are in there admitting that the aliases might have been misguided and that it's worthy of discussion about removing them without breaking a bunch of other shit.

I mean, MS and Linux people are talking to each other! That's already an enormous leap.

Don't fuck that up with angry shitposts and OS wars.

0

u/[deleted] Aug 20 '16

[deleted]

1

u/blue_2501 Aug 20 '16

Aliases for programs that are commonly available on Linux and other UNIX OSs.

0

u/[deleted] Aug 20 '16

[deleted]

1

u/Aethec Aug 20 '16

Nobody uses curl and wget on Windows apart from alternative shells that are Linux ports.

1

u/holyteach Aug 21 '16

That's probably not true. I used the cygwin binary of curl on Windows for an internal tool years ago. Recently replaced it with a pure python version, but still.

1

u/ljdelight Aug 21 '16

Sure but you needed cygwin. Powershell is native

1

u/Gackt Aug 21 '16

curl windows is native too

14

u/[deleted] Aug 19 '16

It is not only Reddit, but many other places too. GitHub could definitely use moderation when it comes to issues. Mailing list software and other issue tracking systems have a way to delete messages easily.

-2

u/shevegen Aug 20 '16

No. Don't use "moderation" - it is a per project issue anyway and they can lock conversation to contributors only.

4

u/[deleted] Aug 20 '16

So what if I posted something such as this:

Microsoft fucked up with PowerShell because Bill Gates did not use dish soap with hydrogen peroxide in it. This caused him to go EEE crazy and hate Linux all over dish soap. And as such, PowerShell replaced curl and wget so that they could embrace the commands and then eventually force Linux users to switch to their shitty replacement.

Would that add anything of value to the issue?

-6

u/acpi_listen Aug 19 '16

I agree, but I enjoyed reading it when I otherwise wouldn't have.

-5

u/davesidious Aug 19 '16

So "fuck the community - I had a laugh"? Yay you.

0

u/[deleted] Aug 19 '16

[deleted]

-3

u/[deleted] Aug 20 '16

So? Damage is still done, and he is still fine with that damage because he was entertained. That's entitled and sociopathic.

2

u/acpi_listen Aug 20 '16

What makes you think I'm fine with it? I'm not.

0

u/[deleted] Aug 20 '16

The proper reaction would be agreement, not agreement and then "but..."

0

u/[deleted] Aug 20 '16

[deleted]

0

u/[deleted] Aug 20 '16

I understand that perfectly. I am saying he is presenting his own enjoyment as a counter-argument to the destruction caused by the linking. This is 100% entitled.

-38

u/wotanii Aug 19 '16

Its happened to us a few times

this sounds hilarious. mind posting some instances of this happening?

0

u/[deleted] Aug 19 '16

[deleted]

4

u/blue_2501 Aug 20 '16

Certainly not in a world where people look for the phrase "Windows 9" to identify Windows 95/98. Microsoft had to work around shitty code like that, so they skipped a version number!

Removing the aliases is breaking userspace. To quote Linus:

If a change results in user programs breaking, it's a bug in the kernel. We never EVER blame the user programs. How hard can this be to understand?

WE DO NOT BREAK USERSPACE!