question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Migration script fails with "unterminated substitute pattern"

See original GitHub issue

The migration script to version 1.0 (https://github.com/spring-projects/spring-hateoas/blob/master/etc/migrate-to-1.0.sh) fails when I run it on my macOS machine (Mojave 10.14.6) with the error message sed: 1: "s/Link\.REL_SELF/IanaLi ...": unterminated substitute pattern repeated for each file matching the pattern.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:5
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
kmaptecommented, Sep 15, 2020

I also ran into same issue on mac. thanks to cdlans for figuring out the problem. I modified the script and split the expression into EXPRESSION1 AND EXPRESSION2 each with 32 lines. and then give -e “$EXPRESSON1” -e"$EXPRESSION2" to the sed

1reaction
mgaceanucommented, Nov 13, 2019

On linux it failed too with sed: can’t read : No such file or directory. I had to change the sed command to sed -i -e "$EXPRESSION" $FILE

Read more comments on GitHub >

github_iconTop Results From Across the Web

sed error - unterminated substitute pattern - Stack Overflow
to work, but that creates files that keeps the old files. Removing the -e flag results in an unterminated substitute pattern error. Same...
Read more >
sed error unterminated substitute pattern for new line text-bash
Sed works on a line-by-line base, hence it becomes tricky to add the coma to the previous line as that line has already...
Read more >
"unterminated `s' command" when doing substitution with sed
This happens because the command substitution (the back-ticked pwd ) is unquoted, i.e. it occurs outside of any single or double quote.
Read more >
bash - How do I Find a string in a file and place a string above it?
Produces error : unterminated substitute pattern. – Nicholas Adamou. Jun 6, 2018 at 19:50. @NicholasAdamou are ...
Read more >
Bug listing with status RESOLVED with resolution OBSOLETE ...
... Bug:5012 - "ALSA ebuild error" status:RESOLVED resolution:OBSOLETE ... script for is not working" status:RESOLVED resolution:OBSOLETE severity:major ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found