Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Invoke-WebRequest -Save (without specifying the name) #6537

Copy link
Copy link
@ghost

Description

In Unix we have:

curl -O https://github.com/PowerShell/PowerShell/archive/master.zip

# and

wget https://github.com/PowerShell/PowerShell/archive/master.zip

which download the file called master.zip at PWD.

In PowerShell, we have to specify the filename:

curl -O master.zip https://github.com/PowerShell/PowerShell/archive/master.zip

and prints the contents to stdout without -OutFile (or -O, -Ou, -Out, -OutF, -OutFi, -OutFil).

Sometimes target URL is read from resources other than manual input and file names are long, less human readable, and we are supposed to preserve the filenames. That requires extra processing / string manipulation cost, which is bit of an inconvenience.

Please add a shorthand -Save switch to make it less wordy, so we can do:

iwr -Save https://github.com/PowerShell/PowerShell/archive/master.zip
Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-Enhancementthe issue is more of a feature request than a bugthe issue is more of a feature request than a bugWG-Cmdlets-Utilitycmdlets in the Microsoft.PowerShell.Utility modulecmdlets in the Microsoft.PowerShell.Utility module

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.