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 a feature to pass arguments on to each task. #44

Merged
merged 1 commit into from Jun 16, 2016

Conversation

robario
Copy link
Contributor

@robario robario commented Jun 15, 2016

Closes #41

return shellQuote.quote([rest.slice(1).join(" ")]);
}
const position = parseInt(index, 10);
if (position >= 0 && position < rest.length) {
Copy link
Owner

Choose a reason for hiding this comment

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

Should is this position >= 1?

Copy link
Contributor Author

@robario robario Jun 16, 2016

Choose a reason for hiding this comment

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

Not necessarily the case.
And say to C language specification, the {0} behaivior is unspecified but NOT undefined.

Copy link
Contributor Author

@robario robario Jun 16, 2016

Choose a reason for hiding this comment

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

They are two of the reasons that I think that there is no problem.

  • In the shell script, $0 is acceptable, but the value is indefinite.
  • In the current implementation, {0} is always --, but the value can be indefinite.

Copy link
Owner

Choose a reason for hiding this comment

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

Sounds good, thank you!

@mysticatea mysticatea merged commit 97a1649 into mysticatea:master Jun 16, 2016
@robario
Copy link
Contributor Author

robario commented Jun 16, 2016

Thank you for merging.
I expect official releasing it hourly.

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

2 participants