bug-sed
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#36204: unmatched `{' with r


From: Dan Jacobson
Subject: bug#36204: unmatched `{' with r
Date: Thu, 13 Jun 2019 20:03:41 +0800

$ seq 3 | sed -n '2{s/2/X/ ; r /dev/null }'
sed: -e expression #1, char 0: unmatched `{'
$ seq 3 | sed -n '2{s/2/X/ ; r /dev/null ; }'
sed: -e expression #1, char 0: unmatched `{'

If r is special and needs a terminating newline for some reason, then
please mention it on the r documentation, and show how to make the above
one liner work.

sed (GNU sed) 4.7





reply via email to

[Prev in Thread] Current Thread [Next in Thread]