running it with no args hangs
fernandezpablo85 opened this issue · comments
Pablo Fernandez commented
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>
Zach Holman commented
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?
Zach Holman commented
Cool; got it. Thanks!