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

Add Process Substitution parsing #15

Closed
wants to merge 1 commit into from
Closed

Add Process Substitution parsing #15

wants to merge 1 commit into from

Conversation

@cuonglm
Copy link

@cuonglm cuonglm commented Oct 19, 2015

Currently, something like:

var xs = parse('echo <(ls)');

will be parsed as:

[ 'echo', { op: '<' }, { op: '(' }, 'ls', { op: ')' } ]

This is wrong since when '<(' is process substitution operator.

This commit add support for parsing process substitution operator by
adding '<(' to the set of control operators. After this commit:

var xs = parse('echo <(ls)');

give:

[ 'echo', { op: '<(' }, 'ls', { op: ')' } ]
Currently, something like:

    var xs = parse('echo <(ls)');

will be parsed as:

    [ 'echo', { op: '<' }, { op: '(' }, 'ls', { op: ')' } ]

This is wrong since when '<(' is process substitution operator.

This commit add support for parsing process substitution operator by
adding '<(' to the set of control operators. After this commit:

    var xs = parse('echo <(ls)');

give:

    [ 'echo', { op: '<(' }, 'ls', { op: ')' } ]
Copy link
Collaborator

@goto-bus-stop goto-bus-stop left a comment

thanks!

@goto-bus-stop
Copy link
Collaborator

@goto-bus-stop goto-bus-stop commented Aug 13, 2019

Merged in #36 and published as 📦 1.7.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants