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

Install real catalog files first, then links for alias names. #10

Merged
merged 1 commit into from
Apr 9, 2019

Conversation

stesser
Copy link
Contributor

@stesser stesser commented Apr 9, 2019

Suggestion of an alternate installation sequence for catalog files.

First the "real" files are installed, then (hard) links added to provide the aliases.
Since all catalog files should be on the same file system, the use of hard links should be OK ...

@codecov
Copy link

codecov bot commented Apr 9, 2019

Codecov Report

Merging #10 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #10   +/-   ##
=======================================
  Coverage   99.96%   99.96%           
=======================================
  Files          16       16           
  Lines        3081     3081           
=======================================
  Hits         3080     3080           
  Misses          1        1

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8752b26...73d6db2. Read the comment docs.

@gavinhoward gavinhoward merged commit c6e1814 into gavinhoward:master Apr 9, 2019
@gavinhoward
Copy link
Owner

There is a change that could be made to make this more robust in the case that the locale that is linked to wasn't installed, but I will make that later. Merged.

gavinhoward pushed a commit that referenced this pull request May 5, 2021
This bug was reported in https://git.yzena.com/gavin/bc/issues/10. It
happens when the first thing a user enters at `stdin` causes a parse
error.

mathieu did not know what caused the error, and I could not reproduce it
on my machine. I tried on FreeBSD and could reproduce it under root, but
not my user.

After investigating, the reason I could not reproduce it was because my
user runs a file: /home/gavin/.bcrc. Because it runs the file, it would
execute the `scale = 20` statement in the math library. However, when I
would not have it execute that file, and enter a parse error first, that
statement would not be executed, and since bc resets after an error,
that statement would disappear and never happen.

The fix was simple: just call bc_program_exec() right after loading the
math libraries.

Fix #10
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