[Gambas-user] Hours of strugglin with EXEC and SHELL
Benoit Minisini
gambas at ...1...
Fri Jan 25 15:37:21 CET 2008
On vendredi 25 janvier 2008, M0E Lnx wrote:
> The first gambas application that I wrote uses SHELL a lot... and I
> came to find out that in gambas, the cd command wont do anything...
> Say for instance, you need to first cd to /tmp and then run ls -al.
> This WILL NOT WORK
>
> PUBLIC SUB cdTEST()
> SHELL "cd /tmp"
> SHELL "ls -al"
> END
and THIS IS NORMAL!
The SHELL instruction runs its argument in a external shell, so two successive
SHELL calls are completely independant.
Regards,
--
Benoit Minisini
More information about the User
mailing list