• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

jhheider / scriptbox / 29660994211
79%

Build:
DEFAULT BRANCH: main
Ran 18 Jul 2026 09:07PM UTC
Jobs 1
Files 11
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

18 Jul 2026 09:06PM UTC coverage: 74.021% (+0.5%) from 73.491%
29660994211

push

github

web-flow
Fix $0 rewrite for shebang-less scripts (closes #1) (#3)

The --argv0 rewrite injected the $0 reset by swapping the line-1 shebang, so a
script with no shebang run via an explicit `scriptbox <shell> script` silently
kept $0 as the fd path even on bash>=5/zsh. Now, when there is no shebang to
swap, prepend the reset as a new line 1 (a 1-line offset in error line numbers,
the small price of getting $0 right). bash>=5/zsh resolve the real path with or
without a shebang; dash/ksh still need --argv0 source; macOS bash 3.2 has no
BASH_ARGV0 either way.

Checksumming is unaffected: the pin gate runs over the pre-rewrite bytes
(run.rs), so a pin verifies the file on disk whether or not a shebang is present
- added a plan() test proving a pinned shebang-less script both verifies and gets
the prologue prepended.

Also updates the compat suite's annotations (finding -> fixed).

Closes #1


Claude-Session: https://claude.ai/code/session_014psyX18vgHn4UkMwCtZqff

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

31 of 31 new or added lines in 2 files covered. (100.0%)

926 of 1251 relevant lines covered (74.02%)

7.31 hits per line

Jobs
ID Job ID Ran Files Coverage
1 29660994211.1 18 Jul 2026 09:07PM UTC 11
74.02
GitHub Action Run
Source Files on build 29660994211
  • Tree
  • List 11
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #29660994211
  • 374dd67e on github
  • Prev Build on main (#29660648563)
  • Next Build on main (#29661623682)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc