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

Fix bashlex to parse whole test file #5

Closed
Jurisak opened this issue Nov 4, 2015 · 5 comments
Closed

Fix bashlex to parse whole test file #5

Jurisak opened this issue Nov 4, 2015 · 5 comments

Comments

@Jurisak
Copy link

Jurisak commented Nov 4, 2015

Hi,
i have problems to parse whole test file. The problems are that bashlex hates empty lines and comments. Could you please fix it? I really would like to use it.
Thanks

@idank
Copy link
Owner

idank commented Nov 4, 2015

Can you give an example? Thanks.

@Jurisak
Copy link
Author

Jurisak commented Nov 5, 2015

if test -e /etc/passwd; then
echo "Alright man..." >&2
else
echo "Yuck! Where is it??" >&2
exit 1
fi

if test -e /etc/passwd; then
echo "Alright man..." >&2
else
echo "Yuck! Where is it??" >&2
exit 1
fi

For example empty space between two conditions. Same result will be with comment.

@Jurisak
Copy link
Author

Jurisak commented Nov 5, 2015

And also fails on first line which in most cases is shebang...

@thmo
Copy link

thmo commented Feb 2, 2017

This is a duplicate of #1 (comments) and #2 (empty lines), I think.

@idank
Copy link
Owner

idank commented Feb 3, 2017

Yeah, looks like it. Thanks.

@idank idank closed this as completed Feb 3, 2017
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

3 participants