Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
curl manpage says -Q '*... works for FTP. It seems to also work for SFTP. Is this intentional? #4017
I did this
https://curl.haxx.se/docs/manpage.html says that -Q will abort if a command fails. Later, it says "When speaking to an FTP server, prefix the command with an asterisk (*) to make curl continue even if the command fails as by default curl will stop at first failure." For my use case, an asterisk does the same using SFTP and it does for FTP.
For reasons I won't go into, I must remove a file before transferring a new file, so, my command looks like this:
If /tmp/file1 does not exist, I can see the attempted unlink and that the transfer is done.
I expected the following
I hope that this is not an accident and that it is intentional that -Q '*... means the same for SFTP as it does for FTP. In other words, can I depend that putting a
curl 7.64.1 (x86_64-pc-cygwin) libcurl/7.64.1 OpenSSL/1.1.1b zlib/1.2.11 libidn2/2.0.4 libpsl/0.18.0 (+libidn2/2.0.2) libssh/0.8.7/openssl/zlib nghttp2/1.37.0
Cygwin running under Windows 10