zsh-users
 help / color / mirror / code / Atom feed
* line continuation with sed
@ 2022-10-13 18:25 Ray Andrews
  2022-10-14  6:35 ` Lawrence Velázquez
                   ` (3 more replies)
  0 siblings, 4 replies; 22+ messages in thread
From: Ray Andrews @ 2022-10-13 18:25 UTC (permalink / raw)
  To: Zsh Users

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.



^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2022-10-17 16:12 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-13 18:25 line continuation with sed Ray Andrews
2022-10-14  6:35 ` Lawrence Velázquez
2022-10-14 11:20   ` Dominik Vogt
2022-10-14 15:44     ` Ray Andrews
2022-10-14 17:10       ` Dominik Vogt
2022-10-14 20:38       ` Lawrence Velázquez
2022-10-14 22:26         ` Ray Andrews
2022-10-14 10:57 ` Marc Chantreux
2022-10-14 11:19 ` Peter Stephenson
2022-10-14 17:15   ` Dominik Vogt
2022-10-14 22:21     ` Ray Andrews
2022-10-15  2:34 ` Aaron Schrab
2022-10-15  2:57   ` Ray Andrews
2022-10-15  5:08     ` Bart Schaefer
2022-10-15 16:53       ` Ray Andrews
2022-10-17  1:07         ` Bart Schaefer
2022-10-17  3:40           ` Ray Andrews
2022-10-17  4:20             ` Bart Schaefer
2022-10-17  9:19               ` Pier Paolo Grassi
2022-10-17  9:24                 ` Pier Paolo Grassi
2022-10-17  9:31                   ` Pier Paolo Grassi
2022-10-17 16:11                     ` Bart Schaefer

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).