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
In Unix we have:
which download the file called master.zip at PWD.
In PowerShell, we have to specify the filename:
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
-Saveswitch to make it less wordy, so we can do: