4 ms·
From the man page. Use "-C -" to tell curl to automatically find out where/how to resume the transfer. It then uses the given output/input files to figure that
by jdhendrickson 8y ago
From the man page.
Use "-C -" to tell curl to automatically find out where/how to resume the transfer. It then uses the given output/input files to figure that out.
- saagarjha 8y agoCorrect me if I’m wrong, but usually “-“ is used (at least in my experience, which is strongly biased towards compilers) as an argument to signify input comes from standard in rather than a file.
- scolby33 8y agoThat's generally true in my experience too, but in this case the parent is correct. Ctrl-F "--continue-at" [0]. [0] https://curl.haxx.se/docs/manpage.html https://curl.haxx.se/docs/manpage.html
- saagarjha 8y agoYeah, I get that they're right. I just wanted to share my surprise that curl changes this "convention", though I guess it's to be expected because curl doesn't really take input anyways.
- sigjuice 8y agoThere is nothing particularly special about "-", but a lot of programs do use it for standard input like you said. e.g. awk, cat, diff. My macOS system has a quite a few of these grep -e '-.*standard input' /usr/share/man/man1/*