Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Usage of quotes around array items #208

Closed
2 tasks done
jackton1 opened this issue Oct 12, 2021 · 0 comments · Fixed by #209
Closed
2 tasks done

[BUG] Usage of quotes around array items #208

jackton1 opened this issue Oct 12, 2021 · 0 comments · Fixed by #209
Labels
bug Something isn't working

Comments

@jackton1
Copy link
Member

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug?

Based on the documentation using "${ARRAY}" and looping over the items results in a single item instead of looping over each item in an array.

To Reproduce

ARRAY=(a b c d)

for i in "${ARRAY}"
   echo i

This prints out:

a b c d

as opposed to:

a
b
c
d

What OS are you seeing the problem on?

all

Expected behavior?

a
b
c
d

Relevant log output

No response

Anything else?

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@jackton1 jackton1 added the bug Something isn't working label Oct 12, 2021
@jackton1 jackton1 changed the title [BUG] Updated usage of quotes around array items [BUG] Fix usage of quotes around array items Oct 12, 2021
@jackton1 jackton1 changed the title [BUG] Fix usage of quotes around array items [BUG] Usage of quotes around array items Oct 12, 2021
@jackton1 jackton1 linked a pull request Oct 12, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant