help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: shell-quote-argument escapes '='


From: Stefan Monnier
Subject: Re: shell-quote-argument escapes '='
Date: Fri, 24 Apr 2020 09:28:53 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

>   (shell-quote-argument "a=b")
>
> I get:
>
>   "a\\=b"

Which is the printed representation of the string that contains
4 characters:

    a\=b

> That's wrong, because it does not work in Bash:
>
>   $ echo "a\\=b"
>   a\=b

You're not supposed to put quotes around nor to double the backslash:

    $ echo a\=b
    a=b
    $


-- Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]