Hi Damien,

On May 15, 2017, at 6:44 AM, Damien Pollet <damien.pollet@gmail.com> wrote:

On 15 May 2017 at 15:26, Eliot Miranda <eliot.miranda@gmail.com> wrote:
Try something like

        shellCommand: 'bash -c ''ls ~''';

But then that would run ls inside of bash inside of the system shell (/bin/sh), wouldn't it? What's the point?

-c's argument is parsed by the shell so one gets full expansion.  Further, if there are arguments after the string, they are assigned to the positional parameters, so that

    sh -c 'echo ~/$0' foo 

prints /Users/eliot/foo

That may be useful.


--
Damien Pollet
type less, do more [ | ] http://people.untyped.org/damien.pollet