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

Array conversion #69

Open
nodesocket opened this issue Jun 20, 2018 · 1 comment
Open

Array conversion #69

nodesocket opened this issue Jun 20, 2018 · 1 comment

Comments

@nodesocket
Copy link

nodesocket commented Jun 20, 2018

I am curious why:

c = array("foo", 4, "bar");

Converts to:

c=$("array" "foo" $((4)) "bar")

Instead of the more standard form:

declare -a c=("foo" 4 "bar")

Namely using $("array" and $(()) for numbers/booleans.

@ilyash-b
Copy link

You are using syntax for running external commands.

a = ["", "y", -1, 1]; - would make an array

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

No branches or pull requests

2 participants