Subject: Re: bug#51501: 28.0.60; shell-quote-argument quotes "^!" incorrectly on MS-Windows

From: Eli Zaretskii <[email-masked]>
Date: Sat, 30 Oct 2021 12:36:30 +0300

> Date: Sat, 30 Oct 2021 08:51:18 +0000
> From: Gregory Heytings <[email-masked]>
> cc: [email-masked]
> 
> > (shell-quote-argument "foo^!") => "^\"foo^^^!^\""
> >
> > This is definitely NOT okay.
> 
> Is this with emacs -Q?

Yes.

> I get "foo\\^\\!".

You are not on MS-Windows, I presume?  The quoting is specific to the
underlying OS, and the bug report is about what happens on MS-Windows.