gavinhoward / bc

An implementation of the POSIX bc calculator with GNU extensions and dc, moved away from GitHub. Finished, but well-maintained.
https://git.gavinhoward.com/gavin/bc
Other
145 stars 29 forks source link

Switch "-q" is ignored #40

Closed depler closed 2 years ago

depler commented 2 years ago

Steps to reproduce:

  1. Start command line bc.exe -q

The result: image

Similar case: image

gavinhoward commented 2 years ago

This is surprising, but I'll investigate it. Should be a simple fix.

gavinhoward commented 2 years ago

This was fixed by 5bc06dd2713ed060cfb74a4f6d237dea2f3b21e3. It turns out that I was handling arguments before setting the default.

gavinhoward commented 2 years ago

Actually, before I close this, can you test the latest commit?

depler commented 2 years ago

Working fine now