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
F15410618: D17582.diff
Wed, Mar 19, 7:53 AM
F15400077: D17582.id.diff
Mon, Mar 17, 9:33 AM
F15396429: D17582.id42297.diff
Sun, Mar 16, 2:13 PM
F15343522: D17582.diff
Sun, Mar 9, 11:24 PM
Unknown Object (File)
Feb 21 2025, 3:16 PM
Unknown Object (File)
Feb 9 2025, 3:37 AM
Unknown Object (File)
Feb 9 2025, 3:37 AM
Unknown Object (File)
Jan 24 2025, 7:52 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