lucapiccinelli / lucapiccinelli/switch_commit

readarray doesn't exist on mac

Open
#1 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Shell
Stars
2
Forks
0
PR merge metrics
No merged PRs in 30d

Description

The script is very useful, but it's not possible to use on mac because readarray command (line 30) doesn't exist.

Possible alternatives:
- https://stackoverflow.com/questions/23842261/alternative-to-readarray-because-it-does-not-work-on-mac-os-x

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at line 30 of the Bash script and inspect how readarray is used. Use the linked macOS-compatible alternatives as a starting point, then verify that the script can switch between Git commits on macOS without changing its existing behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
bash
Domain
cli
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.