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

proccess.argv is wrong #1301

Closed
guileen opened this issue Apr 28, 2011 · 4 comments
Closed

proccess.argv is wrong #1301

guileen opened this issue Apr 28, 2011 · 4 comments
Labels

Comments

@guileen
Copy link

guileen commented Apr 28, 2011

#test.coffee
console.dir process.argv
>coffee test.coffee

It should be

['node','/path/to/coffee','test.coffee']

OR

['/path/to/coffee', 'test.coffee']

OR

['coffee', 'test.coffee']

But, I got

['node', 'test.coffee']
@michaelficarra
Copy link
Collaborator

Did you read the previous related issues? #834 #853 #1087 #1092 #1283

@guileen
Copy link
Author

guileen commented Apr 28, 2011

Do you means ['node', 'test.coffee'] is correct output?

BTW: I notice that process.ARGV is

 ['node','/path/to/coffee','test.coffee']

@TrevorBurnham
Copy link
Collaborator

I agree, and I've made a pull request: #1303

@jashkenas
Copy link
Owner

Merged in #1303.

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

No branches or pull requests

4 participants