r-devel / rcwg

R Contribution Working Group: fostering a larger, more diverse community of contributors to R core development
https://contributor.r-project.org/working-group
68 stars 17 forks source link

Add note about line break in call to `sed` #56

Open EllaKaye opened 4 months ago

aitap commented 4 months ago

Interesting. This seems to be done by R Markdown, because the original source code has the command in one line, unwrapped: https://github.com/r-devel/rcwg/blob/2599e690206cf0a86bf0b1a6fa850bb712daeb24/working_documents/install_r_macos.Rmd#L205-L207

It may also be possible to pre-wrap the command, escaping the newlines so that it would still work when copied and pasted into the terminal:

sed -i.bak \
"s|\$(GIT) svn info|$TOP_SRCDIR/.github/scripts/svn-info.sh|" \
"$TOP_SRCDIR/Makefile.in"