Re: Reference upload glob pieces in output filename
Bastian Jesuiter via curl-users <[email protected]> Wed, 22 Apr 2026 19:48:31 +0200
| Newsgroups | gmane.comp.web.curl.general |
|---|---|
| Message-ID | <CAL07qPX9M=BZbpK=kk3ZSHtFfxi_YH_E8kuAQDRQLy_MPhE2LQ@mail.gmail.com> |
--===============0463735107753955801== Content-Type: multipart/alternative; boundary="00000000000095df02065010247e" --00000000000095df02065010247e Content-Type: text/plain; charset="UTF-8" I don't think the choice of the char is an issue. Even in cmd, as soon as you use " " the cmd will not interpret <. But I am not a cmd expert, I only use Powershell if I'm not on Linux anyway. So please correct me if I'm wrong. On Wed, 22 Apr 2026, 19:45 Paul Gilmartin via curl-users, < [email protected]> wrote: > 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.html > --00000000000095df02065010247e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"auto">I don't think the choice of the char is an issue.=C2= =A0<div dir=3D"auto"><br></div><div dir=3D"auto">Even in cmd, as soon as yo= u use " " the cmd will not interpret <.=C2=A0</div><div dir=3D= "auto"><br></div><div dir=3D"auto">But I am not a cmd expert, I only use Po= wershell if I'm not on Linux anyway. So please correct=C2=A0me if I'= ;m wrong.</div><div dir=3D"auto"><br></div></div><br><div class=3D"gmail_qu= ote gmail_quote_container"><div dir=3D"ltr" class=3D"gmail_attr">On Wed, 22= Apr 2026, 19:45 Paul Gilmartin via curl-users, <<a href=3D"mailto:curl-= [email protected]">[email protected]</a>> wrote:<br></div><bloc= kquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #cc= c solid;padding-left:1ex">On 4/22/26 09:44, Jeremy Nicoll via curl-users wr= ote:<br> >>> curl -T 'file{<glob1>1,2,3}'<a href=3D"https://u= pload.example/%7B" rel=3D"noreferrer noreferrer" target=3D"_blank">https://= upload.example/{</a><glob2>this,that} -o<br> >>> 'response-#<glob1>-#<glob2>'<br> >> I like it a lot.<br> > In the Windows cmd.exe terminal one has to escape the angle brackets (= with<br> > '^' chars) to prevent them from being treated as redirection i= ndicators so<br> > some other characters would be better.<br> There aren't enough characters.=C2=A0 Consider:<br> 585 $ touch=C2=A0 'foo <bar>' 'foo<br> bar'<br> 586 $ ls foo*<br> 'foo'$'\n''bar'=C2=A0 'foo <bar>'<br> 587 $<br> <br> -- <br> gil<br> <br> -- <br> Unsubscribe: <a href=3D"https://lists.haxx.se/mailman/listinfo/curl-users" = rel=3D"noreferrer noreferrer" target=3D"_blank">https://lists.haxx.se/mailm= an/listinfo/curl-users</a><br> Etiquette:=C2=A0 =C2=A0<a href=3D"https://curl.se/mail/etiquette.html" rel= =3D"noreferrer noreferrer" target=3D"_blank">https://curl.se/mail/etiquette= .html</a><br> </blockquote></div> --00000000000095df02065010247e-- --===============0463735107753955801== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline -- Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-users Etiquette: https://curl.se/mail/etiquette.html --===============0463735107753955801==--