Skip to content

Commit

Permalink
Fix 'gap --version' to send its output to stdout
Browse files Browse the repository at this point in the history
Also add a trailing newline.
  • Loading branch information
fingolfin committed Dec 7, 2024
1 parent ceb3db3 commit 3219249
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/system.c
Original file line number Diff line number Diff line change
Expand Up @@ -474,10 +474,11 @@ static Int enableMemCheck(Char ** argv, void * dummy)

static Int printVersion(Char ** argv, void * dummy)
{
SyFputs("GAP ", 1);
SyFputs(SyBuildVersion, 1);
SyFputs(" built on ", 1);
SyFputs(SyBuildDateTime, 1);
puts("GAP ");
puts(SyBuildVersion);
puts(" built on ");
puts(SyBuildDateTime);
puts("\n");

Check warning on line 481 in src/system.c

View check run for this annotation

Codecov / codecov/patch

src/system.c#L477-L481

Added lines #L477 - L481 were not covered by tests
SyExit(0);
}

Expand Down

0 comments on commit 3219249

Please sign in to comment.