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

fix problem with commands returning multiple trailing newlines #371

Merged
merged 2 commits into from Nov 29, 2023

Conversation

dirk-zimoch
Copy link
Contributor

The command git show -s --format=%ci HEAD may output more than one trailing newline under some circumstances (git version 1.8.3.1 if the commit is a merge). This leads to invalid C-code in epicsVCS.h if not all trailing newlines are removed. The default for chomp is to remove only one newline, unless one sets $/=''; first. https://perldoc.perl.org/functions/chomp.

@dirk-zimoch
Copy link
Contributor Author

@AppVeyorBot
Copy link

@anjohnson
Copy link
Member

Core Group: @ralphlange Were you going to test this on Darcs, just to show that the generalized setting change hasn't broken that VCS? If not we're happy with this.

@mdavidsaver
Copy link
Member

@ralphlange ping.

(setting $/='' breaks reading multi-line into an array)
@ralphlange
Copy link
Contributor

With that change - fine for rebase-and-merge.

@AppVeyorBot
Copy link

@AppVeyorBot
Copy link

@anjohnson anjohnson added the Approved Ready To Merge label Nov 29, 2023
@anjohnson anjohnson merged commit 116881a into epics-base:7.0 Nov 29, 2023
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Approved Ready To Merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants