The author of the surl requested Microsoft to remove the curl and wget aliases from PowerShell



The day before yesterday, Microsoft published source code PowerShell. Thus, this tool automation, and configuration database .NET Framework has been available under Linux.

Some are skeptical of the strategy, "Microsoft loves Linux", which declares the Redmond giant. Some believe that the console from Microsoft is not needed in the operating system that has bash. Usually it's just emotional statements, but there are quite rational reasoned objections on the merits. For example, the developer of curl Stenberg Daniel (Daniel Stenberg) is quite logical to say that the presence in PowerShell eponymous alias curl and wget is totally inappropriate, because it prevents the usual normal run of the program.

"Aliases curl and wget prevent the use of the usual command line tools, while not even close to provide the same functionality, writes Daniel Stenberg in pull-request to viewpublication PowerShell code on Github. — They are completely useless for users of PowerShell, but cause confusion for current users of curl and wget".

A pull request Daniel Stenberg supported 466 other users Github. In fact, the alias of the curl within PowerShell introduces some confusion for those who have specially set curl under Windows and want to run this program from the command line.

One of the developers of PowerShell replied review of Stenberga that these aliases were used in different versions of PowerShell, and removing them will be a "breaking change". Therefore they reject this pull request because it represents an "unacceptable change" in accordance with conditions unacceptable changes that break backwards compatibility and break existing user scripts.

Daniel, Stenberg politely replied that actually add these aliases in PowerShell has become a "breaking change" for people who have run curl and wget from the console. "No sane person still won't use these aliases, since your replacing the curl and wget is quite unlike the original command, curl and wget. These aliases only complicate the lives of users who need these tools, and they're not doing anything good for those users for whom these tools are not needed."

PowerShell developers can understand. It is obvious to everyone, and they also that the aliases curl and wget is irrelevant, but the existing multi-stage bureaucracy allows them to make such changes in a simple pull-request. Currently free PowerShell project is administered by a Committee of five maintainers that operate with the knowledge of project managers who in turn, submit to higher management in corporations. Such significant changes require lengthy approvals throughout the corporate hierarchy.

Developers acknowledge problem that when I added "alias for onikovich teams", then under Windows the aliases interfere with running a normal program. This needs to be corrected, but technically such a change is "breaking", in accordance with the official document. Now the maintainers are meeting, what to do with these aliases Linux and how to solve the problem under Linux and under Windows.

As a temporary solution they suggest to manually remove the annoying aliases, adding the following lines to the profile:

Remove-Item Alias:Curl
Remove-Item Alias:WGet
Article based on information from habrahabr.ru

Комментарии

Популярные сообщения из этого блога

The use of Lisp in production

FreeBSD + PostgreSQL: tuning the database server

As we did a free Noodle for iOS and how we plan to earn