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

Support -k for arrays #18

Open
Harvie opened this issue May 13, 2013 · 1 comment
Open

Support -k for arrays #18

Harvie opened this issue May 13, 2013 · 1 comment

Comments

@Harvie
Copy link

Harvie commented May 13, 2013

Hi...

I just expect -k on ["a","b","c"] to output:
0
1
2
instead of error... it will make loops in bash easy... now i have to get "3" using -l, subtract 1 to get 2 and use "seq 0 2" to drive for loop properly...

Thx

@keenerd
Copy link
Owner

keenerd commented Sep 1, 2013

What is your use case? I'm guessing it can probably be done much faster and more simply by using -a instead.

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