Skip to content

Finish 0.2.0: warnings, blank cards, and a no-sudo installer - #8

Merged
rpearce merged 5 commits into
mainfrom
release-0.2.0
Sep 26, 2026
Merged

rpearce merged 5 commits into
mainfrom
release-0.2.0

Conversation

@rpearce

@rpearce rpearce commented Sep 26, 2026

Copy link
Copy Markdown
Owner

Follow-ups to #7 before tagging v0.2.0.

  • Warnings stay on screen. The "Skipping line" and non-UTF-8 locale warnings were cleared before anyone could read them; bashcards now waits for return first (only when the warnings and the cards are both on the terminal).
  • Blank cards are skipped. Deck lines with no text before or after the first = (like =hello, hola=, =, or hola= ) are skipped with a warning instead of showing an empty card.
  • The install script doesn't need sudo. It installs into ~/.local by default (where man finds the page once ~/.local/bin is on the PATH), says how to add ~/.local/bin to the PATH when it's missing, and still uses /usr/local when run as root. The README uses curl … | bash.
  • Restores I love you=Jag älskar dig to the Swedish deck; Fixes and port back to bash 3.2 #7 removed it as a duplicate, but it wasn't one.
  • set -eou pipefail in place of the three set -o lines.
  • Sets the 0.2.0 release date (CHANGELOG and man page) to 2026-09-25.

make check passes on each commit.

🤖 Generated with Claude Code

rpearce and others added 5 commits September 25, 2026 22:41
Warnings used to be cleared off the screen before they could be read, so
now bashcards waits for return first when both the warnings and the card
display are on the terminal. Deck lines with no text before or after the
first = are skipped with a warning instead of showing an empty card.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
89a7267 removed it along with the duplicate fronts, but it wasn't one.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The install script now puts bashcards in ~/.local/bin and its man page in
~/.local/share/man, where man finds it once ~/.local/bin is on the PATH.
It says how to add that directory to the PATH when it isn't there yet.
Running it as root still installs into /usr/local, so `sudo` out of habit
doesn't leave root-owned files in someone's home directory.

The README uses `curl ... | bash` and leads with the no-sudo options for
both the install script and `make install`.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@rpearce
rpearce merged commit 5ae47df into main Sep 26, 2026
2 checks passed
@rpearce
rpearce deleted the release-0.2.0 branch September 26, 2026 03:59
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.

1 participant