Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add note about line break in call to sed #56

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

EllaKaye
Copy link

No description provided.

@aitap
Copy link
Contributor

aitap commented Feb 27, 2024

Interesting. This seems to be done by R Markdown, because the original source code has the command in one line, unwrapped:

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

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"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants