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

Compiler should support - as a file name to mean standard input #33

Open
KamilaBorowska opened this issue Nov 22, 2015 · 0 comments
Open

Comments

@KamilaBorowska
Copy link

If I run earl compile -np -, in my opinion it should read from STDIN and wait for CTRL+D to be input, rather than open a file called -. This is a standard UNIX convention.

However, instead it outputs a Node.js's error message.

Error: ENOENT: no such file or directory, stat '-'
    at Error (native)
    at Object.fs.statSync (fs.js:892:18)
    at compile_path (/home/olivier/npm/earl-grey/src/run.eg:229:12)
    at _run (/home/olivier/npm/earl-grey/src/run.eg:429:13)
    at Object.run (/home/olivier/npm/earl-grey/src/run.eg:312:4)
    at Object.<anonymous> (/home/xfix/node_modules/earlgrey/bin/earl:5:3)
    at Module._compile (module.js:425:26)
    at Object.Module._extensions..js (module.js:432:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:313:12)
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

1 participant