Shell van Gambas2 naar Gambas3

Er is een verschil in de manier hoe Gambas3 het SHELL commando verwerkt t.o.v. Gambas2. Er is een kleine aanpassing nodig om het te weer doen werken:

Gambas2:

SHELL "ping -c 3 192.168.1.1" FOR READ
Public Sub Process_Read()

Dim sLine as String

READ #Last, sLine, -256
DEBUG sLine

Gambas3:

sCommand = "ping -c 3 192.168.1.1"
Shell sCommand For Read As "Process"
Public Sub Process_Read()

DIM sLine as string

sLine = Read #Last, -256
DEBUG sLine