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=-3.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 510 invoked from network); 13 Oct 2022 18:26:56 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 13 Oct 2022 18:26:56 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1665685617; b=AAsM9nfdmX/7KKEjNPjzYCkBzkw3cmeR/f+32EKKg9qRRb5CVN8vcCZIDg/qQCxL2GQHv+MoaD Mxo2SCN6cdIzsVlk/iDza8SQaSxTJoHC3XPHaJdftOku3dXdJLFtD66xlQiLjBpL0q1WmrS/c+ JzimhIxb3qafi2wSCsrPdbst9GfnJbetqdoWvg8+YPguYiS4tZRaXxDs+bW+T1EcV0ty0QJnAJ Z4c6j63QOWgeN10g+ogL0yCCPcHZsKoAQ7+/67tKw03ntRY7x86QINYdnIeIa7N3w/VyJuu5Sn zT2PWYidChGDaxxpeWUBKkFKWj+5+tjqRCENW7K88qj/BA==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mta04.eastlink.ca) smtp.remote-ip=24.224.136.10; dmarc=none header.from=eastlink.ca; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1665685617; bh=mzrPrH4J0BtJpItYRB5nBhjm7E7KCIB2wb0BUDxKKxA=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:Subject:From:To: MIME-Version:Date:Message-ID:DKIM-Signature; b=eZ85aDZgjVKN7Aao8w4r6MS+643F2I8rcTDtVQDGUEl/jtUfbEOLHzHw127zxJ1jsZgyKzMLB2 CeXQ83USGitkTyvB1VSspWXWSjlX2h7hD0Z/36tDkT48MvJ0+EUetxci74byqGytgKaYtFmuLY jjgg1LiVhTS1+Uvw+N89MFtZWVKjRJAmYfMsdIaMBfliqZ1YR8qsMJlc9aAhAfkghzfvdEKDcq y6S1lUQBGDzVDa1A1ZIyAojrcZ1uD1rEzLO+Dwt/AWmR3XDS80laF3Xf/qKbaSDg7HkG1Edvbs hECDxBAS37r4Mmy/k1G8uWkBAPvnO53vnS61VCItBNbfkg==; 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: Content-type:Subject:From:To:MIME-version:Date:Message-id:Reply-To:Cc: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References; bh=s4aTB7oKJWqZByIXx628SwGYpkXIHYOiv3A1DspmGM0=; b=sjciydQbKt/NMj/sUT9mMZM2cO 3HCmOqRHd4eE9J8HRRZxC7ek2YjlfUhUadHs+7G1M5lqghGr4vy4rO6G+aa8oNGYMFxyMIL/9+U3Q S3F5VuScHJO7qV8QEEdQ40mF9CY9GkOtLUqlY8kJkqtm9moQoi0trIrCLRPcDQ3c5a15kMaUrG6V/ dNnlFxjH3BG/cmZzm/y2rE3UbqNiz1o7ou1s9MbWxUgOZERLtl4tKI93vDSJNCFxOZ0WT58k+on/B 0wNcIONKHqcT8Ab3z8khg1EMA5WN49Oo0JLgR9QiJ1rBXcVlXaJpUY8bD94umlHhnHeYuROcQ2mMH CKV+GxCg==; Received: by zero.zsh.org with local id 1oj2v1-000BeD-Lo; Thu, 13 Oct 2022 18:26:55 +0000 Authentication-Results: zsh.org; iprev=pass (mta04.eastlink.ca) smtp.remote-ip=24.224.136.10; dmarc=none header.from=eastlink.ca; arc=none Received: from mta04.eastlink.ca ([24.224.136.10]:39022) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES128-GCM-SHA256:128) id 1oj2u7-000AwC-2f; Thu, 13 Oct 2022 18:26:00 +0000 Received: from csp02.eastlink.ca ([71.7.199.167]) by mta04.eastlink.ca (Oracle Communications Messaging Server 8.0.2.2.20180531 64bit (built May 31 2018)) with ESMTPS id <0RJP00482B88WVL0@mta04.eastlink.ca> for zsh-users@zsh.org; Thu, 13 Oct 2022 15:25:57 -0300 (ADT) Received: from [192.168.0.4] ([24.207.18.108]) by Eastlink with ESMTPSA id j2u4ofw2hlgn7j2u5oyVOW; Thu, 13 Oct 2022 15:25:57 -0300 X-Authority-Analysis: v=2.4 cv=NL8QR22g c=1 sm=1 tr=0 ts=63485835 a=xN66ZtSbq5jdJYpBp7G/jQ==:117 a=xN66ZtSbq5jdJYpBp7G/jQ==:17 a=IkcTkHD0fZMA:10 a=S2BxcbfL_spDyP_ub04A:9 a=QEXdDO2ut3YA:10 X-Vade-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrfeektddguddvjecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfgtefuvffnkffpmfdpqfgfvfenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhepkfffgggfvffhufgtgfesthekredttdefjeenucfhrhhomheptfgrhicutehnughrvgifshcuoehrrgihrghnughrvgifshesvggrshhtlhhinhhkrdgtrgeqnecuggftrfgrthhtvghrnhepveehudegteeiveevieeutefhffelheekueeghedthefgteejvefhgfekhfeigeffnecukfhppedvgedrvddtjedrudekrddutdeknecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepvdegrddvtdejrddukedruddtkedphhgvlhhopegludelvddrudeikedrtddrgegnpdhmrghilhhfrhhomheprhgrhigrnhgurhgvfihssegvrghsthhlihhnkhdrtggrpdhnsggprhgtphhtthhopedupdhrtghpthhtohepiihshhdquhhsvghrshesiihshhdrohhrghdpghgvthdqkghiphfrrghsshifugepthhruhgv X-Vade-Score: -100 X-Vade-State: 0 X-EL-AUTH: rayandrews@eastlink.ca Message-id: <9184bbff-9e68-7b02-2595-3474b016dfff@eastlink.ca> Date: Thu, 13 Oct 2022 11:25:56 -0700 MIME-version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.0 Content-language: en-US To: Zsh Users From: Ray Andrews Subject: line continuation with sed Content-type: text/plain; charset=UTF-8; format=flowed Content-transfer-encoding: 8bit X-Seq: 28201 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: I'm wondering if this is a zsh issue or entirely sed's fault but: $ var=$( print -l $var | sed \ -re 's/.../' \                                 # this is fine -re 's/.../'\                                  # this  throws an error which I'd expect -re 's/.../' \                                  # this throws an error ... -re 's/.../' ) ... if there is a bloody space AFTER the backslash and before the newline.  Thing is it's an invisible error, I just wasted the morning with some sed errors which refused to be found because they were invisible.  What logic would make a space before the newline an error?  I'm thinking it must be a zsh issue because zsh is responsible for line continuation.  Multiple spaces between sed expressions are fine as one would expect so if the backslash simply wrapped the line, there should be no issue.  Mind, haven't I whined about this before?  Could there ever be a situation where backslash-space-newline was not logically reducible to backslash-newline?  If there was such a thing, then of course my complaint is void.