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

option not recognized #334

Closed
obihill opened this issue Feb 3, 2016 · 3 comments
Closed

option not recognized #334

obihill opened this issue Feb 3, 2016 · 3 comments

Comments

@obihill
Copy link

obihill commented Feb 3, 2016

I'm trying a very simple example but I'm having issues:

//my-js-file.js
require('shelljs/global');
ls('-l', '/');

and then I run shjs my-js-file.js on the command line. I get the following error: ls: option not recognized: l.

What am I doing wrong?

Note: Trying this using Node version 4.2.4 on an Ubuntu 14.04 server (DigitalOcean).

@nfischer
Copy link
Member

nfischer commented Feb 3, 2016

Did you install via npm? ls -l is brand new (thanks for trying it out!) and as such has not yet been released on npm. Expect a new npm release (v0.6) by the end of this week 👍

You can get this feature immediately by cloning our git repo instead

@obihill
Copy link
Author

obihill commented Feb 3, 2016

Thanks a lot. I'll make do with .exec() until then. Not in a hurry.

Cheers.

@obihill obihill closed this as completed Feb 3, 2016
@nfischer
Copy link
Member

nfischer commented Feb 3, 2016

My pleasure

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

No branches or pull requests

2 participants