From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: shell-quote-argument escapes '=' Date: Fri, 24 Apr 2020 09:28:53 -0400 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=iso-8859-1 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="49134"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) To: help-gnu-emacs@gnu.org Cancel-Lock: sha1:c0fks8B401lRyPpmRxAw4bWEbbw= Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Apr 24 15:29:25 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 1jRyOS-000Cfg-Lc for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 24 Apr 2020 15:29:24 +0200 Original-Received: from localhost ([::1]:37080 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jRyOR-0001FJ-Mn for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 24 Apr 2020 09:29:23 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58396) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jRyO6-0001F0-T3 for help-gnu-emacs@gnu.org; Fri, 24 Apr 2020 09:29:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jRyO6-0004Ep-Hh for help-gnu-emacs@gnu.org; Fri, 24 Apr 2020 09:29:02 -0400 Original-Received: from ciao.gmane.io ([159.69.161.202]:48382) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jRyO5-00048f-S0 for help-gnu-emacs@gnu.org; Fri, 24 Apr 2020 09:29:02 -0400 Original-Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1jRyO3-000CAu-OA for help-gnu-emacs@gnu.org; Fri, 24 Apr 2020 15:28:59 +0200 X-Injected-Via-Gmane: http://gmane.org/ Received-SPF: pass client-ip=159.69.161.202; envelope-from=geh-help-gnu-emacs@m.gmane-mx.org; helo=ciao.gmane.io X-detected-operating-system: by eggs.gnu.org: First seen = 2020/04/24 09:29:00 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Received-From: 159.69.161.202 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:122925 Archived-At: >   (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