On Tue, Jul 28, 2015 at 12:13 PM, Félix-Antoine Fortin <
felix-antoine.for...@calculquebec.ca> wrote:

> The while loop cannot be executed with sh, while the single line can
> be. Since on my system, sh is simply a link on bash, with some options
> activated, I guess this simply means that the while loop syntax is not
> posix compliant. Which spawns two questions:
>
> 1. Would it be useful to make sure Spark scripts are POSIX compliant?
>

I guess if people are trying to run Spark on systems where bash is not
super common it could help. Not sure how common that use case is.
Otherwise, it seems like it would be more noise than actually useful...

Also note that bash, when executed as "/bin/sh", still allows syntax that
other shells do not necessarily understand. A better test would be to try
to run the script with dash or something else that is not bash.


-- 
Marcelo

Reply via email to