running it with no args hangs #1

Closed
fernandezpablo85 opened this Issue Nov 15, 2011 · 2 comments

Projects

None yet

2 participants

@fernandezpablo85

repro:

curl https://raw.github.com/holman/spark/master/spark > spark

chmod +x ./spark

./spark

(it hangs here)

It should print something like usage: spark <arguments>

@holman
Owner
holman commented Nov 15, 2011

jeez, don't run it without any args then.

Actually I'm not sure; it's hanging on the read because it's expecting it to come in from a pipe if there aren't any args. I haven't really done many scripts that accept input from a pipe; anyone know the best way to handle this particular scenario?

@holman holman added a commit that closed this issue Nov 15, 2011
@holman don't hang on tty (closes #1) c4fde8a
@holman holman closed this in c4fde8a Nov 15, 2011
@holman
Owner
holman commented Nov 15, 2011

Cool; got it. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment