From mboxrd@z Thu Jan 1 00:00:00 1970
Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail
From: Philipp Stephani
Newsgroups: gmane.emacs.help
Subject: Re: shell-quote-argument escapes '='
Date: Fri, 24 Apr 2020 18:13:34 +0200
Message-ID:
References: <1235716199.473564.1587731751300.ref@mail.yahoo.com>
<1235716199.473564.1587731751300@mail.yahoo.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202";
logging-data="7145"; mail-complaints-to="usenet@ciao.gmane.io"
Cc: help-gnu-emacs
To: Stefan Monnier
Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Apr 24 18:14:20 2020
Return-path:
Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org
Original-Received: from lists.gnu.org ([209.51.188.17])
by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.92)
(envelope-from )
id 1jS0y3-0001l3-P4
for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 24 Apr 2020 18:14:19 +0200
Original-Received: from localhost ([::1]:43698 helo=lists1p.gnu.org)
by lists.gnu.org with esmtp (Exim 4.90_1)
(envelope-from )
id 1jS0y2-0003sl-QW
for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 24 Apr 2020 12:14:18 -0400
Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41812)
by lists.gnu.org with esmtp (Exim 4.90_1)
(envelope-from ) id 1jS0xc-0003sF-TD
for help-gnu-emacs@gnu.org; Fri, 24 Apr 2020 12:13:53 -0400
Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1)
(envelope-from ) id 1jS0xX-0006vF-EB
for help-gnu-emacs@gnu.org; Fri, 24 Apr 2020 12:13:52 -0400
Original-Received: from mail-ot1-x333.google.com ([2607:f8b0:4864:20::333]:42375)
by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
(Exim 4.90_1) (envelope-from )
id 1jS0xX-0006kQ-0r
for help-gnu-emacs@gnu.org; Fri, 24 Apr 2020 12:13:47 -0400
Original-Received: by mail-ot1-x333.google.com with SMTP id m18so13257410otq.9
for ; Fri, 24 Apr 2020 09:13:46 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
h=mime-version:references:in-reply-to:from:date:message-id:subject:to
:cc; bh=wTvHC2/mYxYpTfnY/fshzy6lbAlDtr9STxilKJwI0fQ=;
b=kC3wc8FQ7ut4BRcF/CsIUPjRj6+iNM2nKjW8IwL2upIM3rJb1KppsjXB9fwznomCXm
JuV2P1X/apbe0z2eLcLtV1Ji3SbaEJ1YC13jrdNZ9mZDl0yMbcc0BsgHGT1bAdhKFZTE
3Y9q2SxrqMe+sZwlB6VU1iy6sFEzVvosCZ6qkpuITVy9TSURCq5H1Vq2gb9avpUaswT0
tkvPFltTciouUag6q7Ec5iYqFNLEZgPN1l65sdsydT+xicZ2BdHRfvZY1v7//Zb+pFP9
knYDHXUoVLFgIMEWGurL0fBhx/SrCns08wfgJUx+mTCAKqki7NudQxog1QLIHKOh48xe
fyig==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:mime-version:references:in-reply-to:from:date
:message-id:subject:to:cc;
bh=wTvHC2/mYxYpTfnY/fshzy6lbAlDtr9STxilKJwI0fQ=;
b=oT2poWEHH22cBVTqJAz8qaoqu/k1D8hhkuuieAwKjPX+PrVP5F4AlmFLjUnOh2hMzQ
66mZTCDrvekN/xSsh6GucE9XOsdYfg45GkWxbbqHigd9X9W+r4dhNexLKqlGI7AWDIHS
o2js5IGw6Q5jtrNOBIZm4C8XG/FzkvJkk+ezVPED7vaPW0IQhiXkFMAlUe2Rw7KA0vMn
DuhlwPECalSQGJF+noDONuR8PyQXbEoGohRN9gBa42/pqXKPEBA9At+Sj7llxsf7HabI
14ryzxImfLUS4J39kDxdpVbtFAnBGcwvqd1ZpM2forXztK15ZYk6dsJmUM8ABhQbS9nU
RqtQ==
X-Gm-Message-State: AGi0PuYzCtpM/CI+4EbjwoOQbjjX8ssKzptnU1HPmTleJ38upV8aUqAG
tdbPw1yL4NT8GAdoXDVgcYqGmShBQ7HcHvzI0+s=
X-Google-Smtp-Source: APiQypJC/83OnA+WanusfYWQalu2or21FVWSkI2tsi9/xUClusP5cFEfRynTU/Hu4Lb0J4aAGM1FqXX91Om4p0FpB88=
X-Received: by 2002:aca:d441:: with SMTP id l62mr7901673oig.9.1587744825240;
Fri, 24 Apr 2020 09:13:45 -0700 (PDT)
In-Reply-To:
Received-SPF: pass client-ip=2607:f8b0:4864:20::333;
envelope-from=p.stephani2@gmail.com; helo=mail-ot1-x333.google.com
X-detected-operating-system: by eggs.gnu.org: Error: [-] PROGRAM ABORT :
Malformed IPv6 address (bad octet value).
Location : parse_addr6(), p0f-client.c:67
X-Received-From: 2607:f8b0:4864:20::333
X-BeenThere: help-gnu-emacs@gnu.org
X-Mailman-Version: 2.1.23
Precedence: list
List-Id: Users list for the GNU Emacs text editor
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org
Original-Sender: "help-gnu-emacs"
Xref: news.gmane.io gmane.emacs.help:122926
Archived-At:
Am Fr., 24. Apr. 2020 um 15:29 Uhr schrieb Stefan Monnier
:
>
> > (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
> $
>
Note that those two aren't the same. The command
a=b
sets the variable 'a' to the string 'b'. The command
a\=b
runs a function/command/binary called 'a=b'. So not quoting = (i.e.
replicating the printf %q behavior) would be a breaking change.