Page MenuHomePhabricator

arcanist: arc should work with any POSIX shell
AbandonedPublic

Authored by rsmarples on Mar 30 2017, 11:55 AM.
Tags
None
Referenced Files
F18806902: D17582.diff
Sat, Oct 18, 9:59 PM
F18786729: D17582.id42297.diff
Tue, Oct 14, 8:11 PM
F18759181: D17582.id42297.diff
Mon, Oct 6, 2:17 AM
F18740194: D17582.id.diff
Oct 2 2025, 1:01 AM
F18678781: D17582.diff
Sep 25 2025, 11:21 PM
F18210782: D17582.id42297.diff
Aug 19 2025, 1:14 AM
F17948892: D17582.id.diff
Jul 31 2025, 10:18 PM
F17931248: D17582.diff
Jul 30 2025, 6:45 PM
Subscribers

Details

Reviewers
None
Group Reviewers
Blessed Reviewers
Maniphest Tasks
T12477: arc wrapper should work with any POSIX shell
Summary

Currently arc requires bash for $BASH_SOURCE[0] and
substring range removal, both of which are bash specific features.

This patch gets the same result with $0 and string prefix removal,
both of are are POSIX features and as such all shells should support.

Fixes T12477.

Test Plan
  • Run bin/arc on systems with bash and other shells as /bin/sh

Diff Detail

Repository
rARC Arcanist
Branch
sh
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 16223
Build 21546: arc lint + arc unit