Skip to content

Conversation

luis4a0
Copy link
Contributor

@luis4a0 luis4a0 commented Sep 14, 2021

Fixes #2237.

Bash 3 complains when an array is indexed with a negative number. This PR checks for negative subindices where they can appear, so we can use the script with older versions.

@codecov
Copy link

codecov bot commented Sep 14, 2021

Codecov Report

Merging #2238 (280a22f) into main (fb522fc) will not change coverage.
The diff coverage is n/a.

❗ Current head 280a22f differs from pull request most recent head 4633921. Consider uploading reports for the commit 4633921 to get more accurate results
Impacted file tree graph

@@           Coverage Diff           @@
##             main    #2238   +/-   ##
=======================================
  Coverage   83.97%   83.97%           
=======================================
  Files         203      203           
  Lines       10120    10120           
=======================================
  Hits         8498     8498           
  Misses       1622     1622           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update fb522fc...4633921. Read the comment docs.

@luis4a0 luis4a0 force-pushed the fix-bash-subindices branch from 280a22f to 2b1ecbe Compare September 15, 2021 15:17
@luis4a0 luis4a0 force-pushed the fix-bash-subindices branch from 2b1ecbe to 4633921 Compare September 15, 2021 15:20
Copy link
Contributor

@townsend2010 townsend2010 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

bors merge

bors bot added a commit that referenced this pull request Sep 28, 2021
2238: Fix bash completions for old versions r=townsend2010 a=luis4a0

Fixes #2237.

Bash 3 complains when an array is indexed with a negative number. This PR checks for negative subindices where they can appear, so we can use the script with older versions.

Co-authored-by: Luis Peñaranda <[email protected]>
@bors
Copy link
Contributor

bors bot commented Sep 28, 2021

Build failed:

@Saviq
Copy link
Collaborator

Saviq commented Sep 29, 2021

bors retry

@bors
Copy link
Contributor

bors bot commented Sep 29, 2021

Build succeeded:

@bors bors bot merged commit 7100099 into main Sep 29, 2021
@bors bors bot deleted the fix-bash-subindices branch September 29, 2021 10:34
Saviq pushed a commit that referenced this pull request Oct 12, 2021
2238: Fix bash completions for old versions r=townsend2010 a=luis4a0

Fixes #2237.

Bash 3 complains when an array is indexed with a negative number. This PR checks for negative subindices where they can appear, so we can use the script with older versions.

Co-authored-by: Luis Peñaranda <[email protected]>
@Saviq Saviq added this to the v1.8.0 milestone Oct 18, 2021
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.

[macos] bash completion seeing "-bash: COMP_WORDS: bad array subscript"
3 participants