Skip to content

The Terminal's .deb installs amcli, with a man page and completion - #1662

Merged
Rafael-SOWNet merged 2 commits into
masterfrom
the-deb-installs-amcli
Oct 2, 2026
Merged

Rafael-SOWNet merged 2 commits into
masterfrom
the-deb-installs-amcli

Conversation

@Rafael-SOWNet

@Rafael-SOWNet Rafael-SOWNet commented Oct 1, 2026 •

Copy link
Copy Markdown
Member

Closes #1658, closes #1659, part of #1660.

The launcher dropped its arguments. The Terminal's .deb installs angourimath-terminal, which ran cd …-data && ./AngouriMath.Terminal, with no "$@" and no shebang. So the one-shot commands of #1654 couldn't be reached from the package, and the package had no amcli command at all. Now:

  • the launcher is #!/bin/sh, then cd … && exec ./AngouriMath.Terminal "$@";
  • amcli is a link to it;
  • the package installs amcli.1 under /usr/share/man/man1 (man entry #1658) and a bash completion script for the commands under /usr/share/bash-completion/completions (bash-autocompletion script #1659).

Packing under umask 022. Under a stricter umask, dpkg-deb refused the control directory, and the installed files would have been unreadable to other users. The script now sets the umask itself, so the package's modes don't depend on who packs it.

Checked, by publishing for the three Linux runtimes and packing all three .debs:

  • dpkg-deb -c lists the launcher at 755, amcli -> angourimath-terminal, the man page and the completion script, both 644.
  • Run from an extracted package, the launcher answers simp "sin(x)^2 + cos(x)^2" with 1, and echo "1 + x^2" | … diff x with 2 * x.
  • man -l renders the page, and the completion offers the commands for amcli and angourimath-terminal.

The workflow's pull_request path filter now covers the man page and the completion script, so this PR packs on CI too.

Since #1661 merged, the man page and the completion list include info, and the branch is rebased onto it.

For #1660: Debian is covered by this. Nix and the AUR are packages kept outside this repository, and I've proposed moving them to Future on that issue.

🤖 Generated with Claude Code

https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura

@Rafael-SOWNet Rafael-SOWNet added this to the 2.6.0 milestone Oct 1, 2026
Rafael-SOWNet and others added 2 commits October 1, 2026 23:47
The package's launcher, angourimath-terminal, ran the Terminal without its arguments, so the
one-shot commands of #1654 could not be reached from the .deb, and the package had no amcli
command at all. The launcher now has a shebang and passes "$@" on, and amcli is a link to it.

The package also installs amcli.1 under /usr/share/man/man1 (#1658) and a bash completion script
for the commands under /usr/share/bash-completion/completions (#1659). The script packs under
umask 022, so that the package's modes do not depend on who packs it: under a stricter umask,
dpkg-deb refused the control directory, and the installed files would have been unreadable to
other users.

Closes #1658, closes #1659, part of #1660.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura
#1661 merged, so info is one of amcli's commands now.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura
@Rafael-SOWNet
Rafael-SOWNet force-pushed the the-deb-installs-amcli branch from 3489d0c to 885bf4f Compare October 1, 2026 23:47
@Rafael-SOWNet
Rafael-SOWNet merged commit 422c711 into master Oct 2, 2026
28 checks passed
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.

bash-autocompletion script man entry

1 participant