curl-users
Re: --continue-at - Last-Modified and output mtime
Date: Fri, 22 Mar 2019 22:46:02 +0100 (CET)
On Thu, 21 Mar 2019, Jack Bates wrote:
>> Adjusting -z to have it possible to work with --remote-name would be a good
>> idea I think.
>
> 👍 Sounds good. I'm not sure what command line syntax would be best?
Hm, tricky. I figure it should preferably be something that isn't typically
going to match a file name nor a date string, and ideally something that isn't
going to play tricks on people's shells (so no '!' or '$' etc).
Maybe "%{remote-name}" ? Or perhaps the shorter using a single letter: "%{r}".
It would match the syntax already used for -w. Even though I don't expect us
to think of other keywords right now, it still allows for us to add more in a
future if we can think of any.
Example command line:
curl -z '%{r}' -O https://example.com/foo
-- / daniel.haxx.se
-----------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2019-03-22