Skip to content

Introducing bash-parser dependency#112

Open
parro-it wants to merge 5 commits intodthree:masterfrom
parro-it:master
Open

Introducing bash-parser dependency#112
parro-it wants to merge 5 commits intodthree:masterfrom
parro-it:master

Conversation

@parro-it
Copy link
Copy Markdown

@parro-it parro-it commented Jun 2, 2017

This is an investigatory PR to study the introduction of a POSIX compliant shell code parser using bash-parser.

I studied the cash workflow, and I think the majority of changes in source code would concern Vorpal.

They could be implemented directly there (in vorpal core) or we could patch vorpal and implement it only for cash.

Comment thread src/preparser.js
// return input;
// };

module.exports = preparser;
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When we will use it, bash-parser has already taken care of env parameter expansion at this point, so the preparser should be superflous

@dthree
Copy link
Copy Markdown
Owner

dthree commented Jun 2, 2017

We're tearing apart Vorpal right now anyway, so I think it would be a good idea to play with i there.

Comment thread dist/commands/head.js

var head = {
exec: function exec(args, options) {
console.log({ args: args });
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why would you want this?

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

Successfully merging this pull request may close these issues.

3 participants