Skip to content

Minified redirection operators cause errors #1

Description

@systemmonkey42

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions