在 2025-8-26 20:19, Martin Storsjö 写道:
On Tue, 26 Aug 2025, Antonin Décimo wrote:

+          echo /gcc-mingw/bin >> $GITHUB_PATH
...
+          export PATH=/gcc-mingw/bin:$PATH

You should probably quote the variables (you never know...)

Sure, we could do that.

I have an impression that shell tokenization happens before variable expansion, so despite potential spaces in PATH, this can't be ambiguous.

On the other hand, tokenization of command-line arguments happens after variable expansion, so quoting is required there.


--
Best regards,
LIU Hao

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to