The bit.ly shortcut URL will redirect to github. However, curl -O will determine the destination file name by originating URL, not the redirected URL. Therefore, the file will be saved as python-make because it is now allowed to use . in bit.ly.
The -J (--remote-header-name) option does not help, since github will not return with the Content-Disposition response header.
The
bit.lyshortcut URL will redirect to github. However,curl -Owill determine the destination file name by originating URL, not the redirected URL. Therefore, the file will be saved aspython-makebecause it is now allowed to use.inbit.ly.The
-J(--remote-header-name) option does not help, since github will not return with theContent-Dispositionresponse header.