From mboxrd@z Thu Jan 1 00:00:00 1970 From: Achim Gratz Subject: Re: [babel] Sh problem when echo'ing input data with ' inside Date: Tue, 18 Jan 2011 19:23:20 +0100 Message-ID: <87y66ink9z.fsf@Rainer.invalid> References: <80k4i3vgzo.fsf@missioncriticalit.com> <87k4i3uwpm.fsf@Rainer.invalid> <87fwsrusac.fsf@Rainer.invalid> <80vd1n40k0.fsf@missioncriticalit.com> <80d3nuefcy.fsf@missioncriticalit.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from [140.186.70.92] (port=41417 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PfGDV-0003Qx-H3 for emacs-orgmode@gnu.org; Tue, 18 Jan 2011 13:23:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PfGDS-00058X-Gs for emacs-orgmode@gnu.org; Tue, 18 Jan 2011 13:23:39 -0500 Received: from lo.gmane.org ([80.91.229.12]:59784) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PfGDS-00058F-BO for emacs-orgmode@gnu.org; Tue, 18 Jan 2011 13:23:38 -0500 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PfGDN-00021M-O0 for emacs-orgmode@gnu.org; Tue, 18 Jan 2011 19:23:33 +0100 Received: from p57aac302.dip.t-dialin.net ([87.170.195.2]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 18 Jan 2011 19:23:33 +0100 Received: from Stromeko by p57aac302.dip.t-dialin.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 18 Jan 2011 19:23:33 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Sébastien Vauban writes: > I asked the question on the Cygwin mailing list, and got an answer from Tobias > Schlottke, telling me to use the 'plain old' syntax (=`...`= instead of > =$(...)=): I can confirm. This is really bad, since now you'd have to escape backticks in the data coming from emacs. Do you have a link to the discussion, provided there is a web-mirror of the mailing list someplace? I'm a bit out of my waters here since mostly I'm using tcsh, but it appears that dash on cygwin (not ash, even though dash is just a symlink to ash) does the right thing. It is also vastly smaller than bash, so you might just use it for babel scripting. > Can we move to that syntax? For the reason above this would not be safe without more changes to babel and backticks are actively discouraged to use in new scripts by just about any shell introduction/ FAQ for years now. Eric has implemented a workaround and the problem deserves to be documented, though. Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ SD adaptation for Waldorf microQ V2.22R2: http://Synth.Stromeko.net/Downloads.html#WaldorfSDada