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

vars defined in before block, are not seen in other blocks. #50

Open
lvv opened this issue Mar 23, 2016 · 0 comments
Open

vars defined in before block, are not seen in other blocks. #50

lvv opened this issue Mar 23, 2016 · 0 comments

Comments

@lvv
Copy link

lvv commented Mar 23, 2016

echo '[{"id":1},{"id":2}]' | jsawk -b 'var seen=[]' 'if(seen.indexOf(this.id)==-1) seen.push(this.id)'

jsawk: js error: ReferenceError: seen is not defined

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

1 participant