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

Introducing bash-parser dependency #112

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Conversation

parro-it
Copy link

@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.

src/preparser.js Outdated
// const preparser = function (input) {
// input = parseEnvVariables(input);
// return input;
// };

module.exports = preparser;
Copy link
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
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.

@@ -10,6 +10,7 @@ var expand = require('./../util/expand');

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

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.

None yet

3 participants