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&#39;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 &quot; &quot; the cmd will not interpret &lt;.=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&#39;m not on Linux anyway. So please correct=C2=A0me if I&#39=
;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, &lt;<a href=3D"mailto:curl-=
[email protected]">[email protected]</a>&gt; 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>
&gt;&gt;&gt; curl -T &#39;file{&lt;glob1&gt;1,2,3}&#39;<a href=3D"https://u=
pload.example/%7B" rel=3D"noreferrer noreferrer" target=3D"_blank">https://=
upload.example/{</a>&lt;glob2&gt;this,that} -o<br>
&gt;&gt;&gt; &#39;response-#&lt;glob1&gt;-#&lt;glob2&gt;&#39;<br>
&gt;&gt; I like it a lot.<br>
&gt; In the Windows cmd.exe terminal one has to escape the angle brackets (=
with<br>
&gt; &#39;^&#39; chars) to prevent them from being treated as redirection i=
ndicators so<br>
&gt; some other characters would be better.<br>
There aren&#39;t enough characters.=C2=A0 Consider:<br>
585 $ touch=C2=A0 &#39;foo &lt;bar&gt;&#39; &#39;foo<br>
bar&#39;<br>
586 $ ls foo*<br>
&#39;foo&#39;$&#39;\n&#39;&#39;bar&#39;=C2=A0 &#39;foo &lt;bar&gt;&#39;<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==--