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

Minified redirection operators cause errors #1

Open
systemmonkey42 opened this issue Jun 1, 2017 · 1 comment
Open

Minified redirection operators cause errors #1

systemmonkey42 opened this issue Jun 1, 2017 · 1 comment

Comments

@systemmonkey42
Copy link

Hi,
I'm not sure if you are maintaining this script, but I've been finding it pretty useful.

I've encountered a few issues, but only one which I could fix without changing your code.

The '<()' operator when used with input redirectory 'read < <(echo hello)' is "minifined" to
'read<<(echo hello)'
Without the space between the two '<' operators, they become '<<(' which is an error.

This is bash specific.

Other problems like 'if [[ $\n$a != $test ]];' resulted in 'if [[ $'\n'$a!= $test ]];' . The loss of the space
before the '!=' broke the script, however that was easy enough to work around with quoting.

Cheers

@precious
Copy link
Owner

precious commented Jun 1, 2017

@systemmonkey42
The first issue has been fixed.
I can't reproduce the 2nd one -- can you provide a small file that is not minified correctly please?

Thank you for reporting issues!

UPD Just noticed that '[[' bash builtin is not handled correctly -- newlines inside are replaced with semicolons. So I'm working on a fix.

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