[Gambas-user] Executing make from a Gambas program

T Lee Davidson t.lee.davidson at gmail.com
Sat Mar 9 19:52:27 CET 2019


On 3/9/19 10:38 AM, Cedron Dawg wrote:
> So, I found "EXEC Command TO Variable" in the help.  Perfect.  Or so I thought.  I am getting unexpected (to me) results.
> 
> In my Gambas program:
> --------------------------
>     Exec ["make", "~/Gambas/libGambas/NiceTerminal/"]
>     Exec ["/usr/bin/make", "~/Gambas/libGambas/NiceTerminal/makefile"]
>     Shell "make ~/Gambas/libGambas/NiceTerminal/makefile"
> --------------------------
> 
> the output I get:
> 
> --------------------------
> make: Nothing to be done for `<path to home>/Gambas/libGambas/NiceTerminal/makefile'.
> make: Nothing to be done for `<path to home>/Gambas/libGambas/NiceTerminal/'.
> make: Nothing to be done for `<path to home>/Gambas/libGambas/NiceTerminal/makefile'.
> --------------------------

The Exec statement does not expand special characters, such as the tilde, like Shell does. I can't say anything about the other 
issues, but perhaps this knowledge may help you ignore expected results.

"Differences Between Shell And Exec"
http://gambaswiki.org/wiki/doc/shellexec


___
Lee


More information about the User mailing list