holman / spark

▁▂▃▅▂▇ in your shell.

Home Page:http://zachholman.com/spark/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

running it with no args hangs

fernandezpablo85 opened this issue · comments

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>

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?

Cool; got it. Thanks!