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

pzstd: use # directly for the test c++ snippet #3681

Closed
wants to merge 1 commit into from

Conversation

kanavin
Copy link
Contributor

@kanavin kanavin commented Jun 19, 2023

\043 is not portable between shells: dash expands it to #, bash does not. As far as I see, using # works totally fine.

\043 is not portable between shells: dash expands it to #,
bash does not. As far as I see, using # works totally fine.
@kanavin
Copy link
Contributor Author

kanavin commented Jun 19, 2023

Make isn't cooperative either, 4.3 is fine with #, 4.2 wants backslash-#. Let's just read the test snippet from an external file.

kanavin pushed a commit to kanavin/zstd that referenced this pull request Jun 19, 2023
Doing this check with a direct c++ snippet is prone to portability problems:

- \043 is not portable between shells: dash expands it to #,
bash does not;

- using # directly works with make 4.3 but does not with make 4.2.

Let's just use the c++ version that covers both the code and the gtest.

Upstream-Status: Submitted [facebook#3681]
Signed-off-by: Alexander Kanavin <[email protected]>

%% original patch: 0001-pzstd-use-directly-for-the-test-c-snippet.patch
@kanavin kanavin closed this Jun 19, 2023
@kanavin
Copy link
Contributor Author

kanavin commented Jun 19, 2023

Superseded by #3682

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

Successfully merging this pull request may close these issues.

2 participants