From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-2.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_HELO_IP_MISMATCH, RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 17576 invoked from network); 14 Oct 2022 10:58:39 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 14 Oct 2022 10:58:39 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1665745119; b=VemcXuvof4YRjWAn9R2/3h3clHvUxYkGdfQos7V8TkfCEzoxKqM13x3tLXuVQy3o4ec3J2vVJK gOywp0c4thX58PtVSqfzHJj3yOYTiKXBT/zqGDWlmmKruMhsRoaWhXio4CmND2qGbeg8IdvOxs 4RqUvakPmU8nPX9yp1AJFaUOAT5KN6xXobolkdOEXWDcJ1ISFx/joK9Tj3SmgjKtu4cKSK8PFK v9/kzorpcp6s8wed5GI1cejemYTco+9BaJmFLhDlzWndBJCZed7eCDYNR2sioojMHQLIpmnGkM ikmNmE0pF0qn6RplS1uEZ4gYZlz+qTvNCp97fKmEC+jxAA==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (smtpout01-ext2.partage.renater.fr) smtp.remote-ip=194.254.240.33; dkim=pass header.d=unistra.fr header.s=CF279DD4-6F58-4C59-BB33-73FDC6DFC1E3 header.a=rsa-sha256; dmarc=none header.from=unistra.fr; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1665745119; bh=XPk9Cywp8N+gi5OHrbSZFLemGMzsWaLXQ1ln+fSzVPo=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:DKIM-Signature: DKIM-Signature; b=hqoagZjSIWCjsFVIJMARqI+ragKECLV03Yu/LGNQWwxSELLpha/2QjVJmdq6niafx3GVsPwxt6 erya432P28pjEWAbz2/nnZh2X/pxI80IY/GWsZVqLqoTIuMfaqUaTF9QyMh9GD1PMf1Ocr4k9H +yx7y1MbRdfMtV/f/nobQ9YSvMbp7W/+oUqtKUZ4Ba7pWVNDZe13qebhOWeaewx6yysak8+iEQ arsSTyEvd4aFrOe+6BfhODShwMy39aCcxKiNItxztOnwYiwvpfGFCMNEMvQQ+DW36Ir96JWnto kt6ha7B9PkTeOtce2AMeCDguQiERBFEnpf8WMBHA+dgIcw==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Transfer-Encoding:In-Reply-To :Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID; bh=QuOw1uUGzS9bOEOK/UgSMxhQBjb/uWdm15sCcWJDTCI=; b=a99HT3wbdBsnQ+UDJF2ZRo8Tst nFGbhjfttYByDpsmo0hR+DstLQL4B6qXG2mNVG38BOrUNpdhSHwI2LNeb+9FhLjB9dNzC3suDm4qK OsDgkHZ0VxWQgbljvb6m3wm9PyxjUTltdWz3xapS8L/IBUTKU2rH/wRdQMzQOpWlhX9t8x3mx0ph9 Gm0WVfAxwJGIeHyxtG8qRO513oFnaL1/QYi74Dy12prvRT73pKtP/P1hjhDFWwHyt6Z+73PqF9Hr2 gCr3P8/xKGfuH8COXtAuvsTvrErPqbub3xt08jf8srhDZH+UyRdqQStNMc8ozLhlD9utGvNttSs1E koINB2BQ==; Received: by zero.zsh.org with local id 1ojIOj-000BNS-Bx; Fri, 14 Oct 2022 10:58:37 +0000 Authentication-Results: zsh.org; iprev=pass (smtpout01-ext2.partage.renater.fr) smtp.remote-ip=194.254.240.33; dkim=pass header.d=unistra.fr header.s=CF279DD4-6F58-4C59-BB33-73FDC6DFC1E3 header.a=rsa-sha256; dmarc=none header.from=unistra.fr; arc=none Received: from smtpout01-ext2.partage.renater.fr ([194.254.240.33]:43854) by zero.zsh.org with esmtp id 1ojING-000AiC-Hx; Fri, 14 Oct 2022 10:57:08 +0000 Received: from zmtaauth03.partage.renater.fr (zmtaauth03.partage.renater.fr [194.254.240.26]) by smtpout10.partage.renater.fr (Postfix) with ESMTP id DDD23630D9; Fri, 14 Oct 2022 12:57:03 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by zmtaauth03.partage.renater.fr (Postfix) with ESMTP id D254480110; Fri, 14 Oct 2022 12:57:03 +0200 (CEST) Received: from zmtaauth03.partage.renater.fr ([127.0.0.1]) by localhost (zmtaauth03.partage.renater.fr [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id mCA0grNvt-ph; Fri, 14 Oct 2022 12:57:03 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by zmtaauth03.partage.renater.fr (Postfix) with ESMTP id 914DF80071; Fri, 14 Oct 2022 12:57:03 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.10.3 zmtaauth03.partage.renater.fr 914DF80071 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=unistra.fr; s=CF279DD4-6F58-4C59-BB33-73FDC6DFC1E3; t=1665745023; bh=QuOw1uUGzS9bOEOK/UgSMxhQBjb/uWdm15sCcWJDTCI=; h=Date:From:To:Message-ID:MIME-Version; b=ZFxNonQbeYo+/1Bf4lfKZXt1yqq6+c8G0mFz8as+MlMgLrINEGQ1sTAKAuZbp4IhF 7oVdgi58KFzwTNZoTjmhQ/0+9mAUtscaWaRRVO3/jMqwXwPfPwd4XJYNiLemDTLmfZ wzXHAJcCjZhewCuLaE3VarAVUDmRwkQli7pvTRQ6kJCB6ju37TLDh7X8pJrU7Ko6Cv 1urpbt5u1YVccAEEorQ8jhIyQb4kxUogdieRMwsDX2ojGeZiKpXXFg0pEGz0P3zXPa czXXalCK+IxsPHeiZBFfj5iE8yDXgx7wrOBnsECeDyyq9TbFKwLmeunOY05S9YAnik A6CVoyuPUJFKg== X-Virus-Scanned: amavisd-new at zmtaauth03.partage.renater.fr Received: from zmtaauth03.partage.renater.fr ([127.0.0.1]) by localhost (zmtaauth03.partage.renater.fr [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id xKGJuugXTiSo; Fri, 14 Oct 2022 12:57:03 +0200 (CEST) Received: from 82.65.50.238 (unknown [194.254.241.249]) by zmtaauth03.partage.renater.fr (Postfix) with ESMTPA id 605CF80364; Fri, 14 Oct 2022 12:57:03 +0200 (CEST) Date: Fri, 14 Oct 2022 12:57:01 +0200 From: Marc Chantreux To: Ray Andrews Cc: Zsh Users Subject: Re: line continuation with sed Message-ID: References: <9184bbff-9e68-7b02-2595-3474b016dfff@eastlink.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <9184bbff-9e68-7b02-2595-3474b016dfff@eastlink.ca> X-Renater-Ptge-SpamState: clean X-Renater-Ptge-SpamScore: -100 X-Renater-Ptge-SpamCause: gggruggvucftvghtrhhoucdtuddrgedvfedrfeekvddgfeehucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecutffgpfetvffgtfenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhepfffhvfevuffkfhggtggugfgjsehtkeertddttddunecuhfhrohhmpeforghrtgcuvehhrghnthhrvghugicuoehmtgesuhhnihhsthhrrgdrfhhrqeenucggtffrrghtthgvrhhnpedtjefgvdfgledvieegheegjeejudektddvudekieeiffeiuefggeeukedthefhteenucffohhmrghinhepuhhnihhsthhrrgdrfhhrnecukfhppeduleegrddvheegrddvgedurddvgeelnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepudelgedrvdehgedrvdeguddrvdegledphhgvlhhopeekvddrieehrdehtddrvdefkedpmhgrihhlfhhrohhmpeforghrtgcuvehhrghnthhrvghugicuoehmtgesuhhnihhsthhrrgdrfhhrqedpnhgspghrtghpthhtohepvddprhgtphhtthhopehrrgihrghnughrvgifshesvggrshhtlhhinhhkrdgtrgdprhgtphhtthhopeiishhhqdhushgvrhhsseiishhhrdhorhhg Content-Transfer-Encoding: quoted-printable X-Seq: 28203 Archived-At: X-Loop: zsh-users@zsh.org Errors-To: zsh-users-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-users-request@zsh.org X-no-archive: yes List-Id: List-Help: , List-Subscribe: , List-Unsubscribe: , List-Post: List-Owner: List-Archive: hello Ray, I don't know about the \ problem (maybe you should provide a real non-working example so we can play ourselves: setting variables, having working substitions ...) also: here are some workarounds: a) is there a reason not to use what I believe to be the common way to do= it? var=3D$( print -l $var | sed -r ' s/.../.../ s/.../.../ s/.../.../ s/.../.../ ') b) why not embbed in a function? a and b are not exclusive, you can write substitute_things() sed -r ' s/.../.../ s/.../.../ s/.../.../ s/.../.../ ' var=3D$( print -l $var | substitute_things ) c) dig into a pure zsh substitution ? I imagine $var is an array as you use print -l so var=3D( those_are long_words ) print -l ${var/???/AAA} gimme AAAse_are AAAg_words HTH --=20 Marc Chantreux P=F4le de Calcul et Services Avanc=E9s =E0 la Recherche (CESAR) http://annuaire.unistra.fr/p/20200