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

Cannot read into array index #4860

Open
mqudsi opened this issue Mar 29, 2018 · 0 comments
Open

Cannot read into array index #4860

mqudsi opened this issue Mar 29, 2018 · 0 comments

Comments

@mqudsi
Copy link
Contributor

mqudsi commented Mar 29, 2018

While set var[n] foo is valid, read var[n] is not:

mqudsi@Blitzkrieg /m/d/r/tig> set var[2] foo
mqudsi@Blitzkrieg /m/d/r/tig> printf "%s\n" $var

foo
mqudsi@Blitzkrieg /m/d/r/tig> echo "hello" | read foo[2]
read: Variable name 'foo[2]' is not valid. See `help identifiers`.
mqudsi@Blitzkrieg /m/d/r/tig>
@zanchey zanchey added this to the fish-future milestone Mar 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants