On Mon, May 28, 2012 at 6:23 PM, Arun Ramakrishnan
<
sinchron...@gmail.com> wrote:
> Thanks for the pointer. But, am not sure how to get around it
>
> On bash or shell, the following works just fine
>>>
>>> $bash -c "ls *.scala"
>
>
> But,
>
>> """"bash -c "ls *.scala""""
>
> Still dosent work.
Because the quotes are not delimiting the parameter passed to bash --
it is Scala who decides how the arguments break up, and it simply
splits on spaces, without any quotation facility. If you try the
following, instead, it will work:
Seq("bash", "-c", "ls *.scala").!