From owner-freebsd-questions@FreeBSD.ORG Mon Jan 15 17:12:56 2007 Return-Path: X-Original-To: freebsd-questions@FreeBSD.ORG Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1199816A494 for ; Mon, 15 Jan 2007 17:12:56 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (lurza.secnetix.de [83.120.8.8]) by mx1.freebsd.org (Postfix) with ESMTP id 92FEB13C457 for ; Mon, 15 Jan 2007 17:12:55 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (vwfgja@localhost [127.0.0.1]) by lurza.secnetix.de (8.13.4/8.13.4) with ESMTP id l0FHCn9N085538; Mon, 15 Jan 2007 18:12:54 +0100 (CET) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.13.4/8.13.1/Submit) id l0FHCmEL085537; Mon, 15 Jan 2007 18:12:48 +0100 (CET) (envelope-from olli) Date: Mon, 15 Jan 2007 18:12:48 +0100 (CET) Message-Id: <200701151712.l0FHCmEL085537@lurza.secnetix.de> From: Oliver Fromme To: freebsd-questions@FreeBSD.ORG, kline@tao.thought.org In-Reply-To: <20070114214410.GB24039@thought.org> X-Newsgroups: list.freebsd-questions User-Agent: tin/1.8.2-20060425 ("Shillay") (UNIX) (FreeBSD/4.11-STABLE (i386)) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.1.2 (lurza.secnetix.de [127.0.0.1]); Mon, 15 Jan 2007 18:12:54 +0100 (CET) Cc: Subject: Re: perl substitution question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-questions@FreeBSD.ORG, kline@tao.thought.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Jan 2007 17:12:56 -0000 Gary Kline wrote: > Giorgos Keramidas wrote: > > Watch out for shells with funny 'expansion rules', like csh(1) :) > > [...] > > Man! truer words, (&c)... . One o the very few suggestions > left for improving shells [ and/or subshells ] is a flag, > say '-N' which would have *nothing* to be escaped. In other > words a '$' or '"' would be interpreted literally. Everything between single quotes (') is taken literally and does not need to be escaped. Except for the single quote character itself, obviously, but that's not a big deal anyway. Best regards Oliver PS: I'm talking about standard bourne shell, of course (a.k.a. /bin/sh, zsh, ksh or bash). I recommend against using csh or tcsh. -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing Dienstleistungen mit Schwerpunkt FreeBSD: http://www.secnetix.de/bsd Any opinions expressed in this message may be personal to the author and may not necessarily reflect the opinions of secnetix in any way. "If you aim the gun at your foot and pull the trigger, it's UNIX's job to ensure reliable delivery of the bullet to where you aimed the gun (in this case, Mr. Foot)." -- Terry Lambert, FreeBSD-hackers mailing list.