Buy commercial curl support. We
help you work out your issues, debug your libcurl applications, use the API,
port to new platforms, add new features and more. With a team lead by the
curl founder Daniel himself.
Re: Reference upload glob pieces in output filename
- Contemporary messages sorted: [ by date ] [ by thread ] [ by subject ] [ by author ] [ by messages with attachments ]
From: Paul Gilmartin via curl-users <curl-users_at_lists.haxx.se>
Date: Wed, 22 Apr 2026 11:45:38 -0600
On 4/22/26 09:44, Jeremy Nicoll via curl-users wrote:
>>> curl -T 'file{<glob1>1,2,3}'https://upload.example/{<glob2>this,that} -o
>>> 'response-#<glob1>-#<glob2>'
>> I like it a lot.
> In the Windows cmd.exe terminal one has to escape the angle brackets (with
> '^' chars) to prevent them from being treated as redirection indicators so
> some other characters would be better.
There aren't enough characters. Consider:
585 $ touch 'foo <bar>' 'foo
bar'
586 $ ls foo*
'foo'$'\n''bar' 'foo <bar>'
587 $
Date: Wed, 22 Apr 2026 11:45:38 -0600
On 4/22/26 09:44, Jeremy Nicoll via curl-users wrote:
>>> curl -T 'file{<glob1>1,2,3}'https://upload.example/{<glob2>this,that} -o
>>> 'response-#<glob1>-#<glob2>'
>> I like it a lot.
> In the Windows cmd.exe terminal one has to escape the angle brackets (with
> '^' chars) to prevent them from being treated as redirection indicators so
> some other characters would be better.
There aren't enough characters. Consider:
585 $ touch 'foo <bar>' 'foo
bar'
586 $ ls foo*
'foo'$'\n''bar' 'foo <bar>'
587 $
-- gil -- Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-users Etiquette: https://curl.se/mail/etiquette.htmlReceived on 2026-04-22