Re: [Gambas-user] Shell - commands with arguments doesn't work

2013-05-31 Thread Jesus
El 31/05/13 08:15, Kende Krisztián escribió: > Thu, 30 May 2013 23:50:30 +0200 -n > Jesus írta: > >> El 30/05/13 21:35, Kende Krisztián escribió: >>> An interesting example, why do not you use native methods? >>> >>> Dim item As String >>> >>> For Each item In Dir(User.Home).Sort() >>> >>> Wit

Re: [Gambas-user] Shell - commands with arguments doesn't work

2013-05-31 Thread Benoît Minisini
Le 31/05/2013 08:15, Kende Krisztián a écrit : > > It's works: > > Shell "ifconfig --help 2>&1" To somevar > > but stderr cannot be seen. > Yes. I have updated the documentation with that information. -- Benoît Minisini ---

Re: [Gambas-user] Shell - commands with arguments doesn't work

2013-05-30 Thread Kende Krisztián
Thu, 30 May 2013 23:50:30 +0200 -n Jesus írta: > El 30/05/13 21:35, Kende Krisztián escribió: > > An interesting example, why do not you use native methods? > > > > Dim item As String > > > > For Each item In Dir(User.Home).Sort() > > > >With Stat(User.Home & "/" & item) > > > > Print .A

Re: [Gambas-user] Shell - commands with arguments doesn't work

2013-05-30 Thread Jussi Lahtinen
Hmmm... no "--help" seems to be documented option... Then I don't understand why it's output goes to standard error. But it does anyway. Jussi On Fri, May 31, 2013 at 1:29 AM, Jussi Lahtinen wrote: > It's because ifconfig is bit weird... there is no --help option and so > output is directed to

Re: [Gambas-user] Shell - commands with arguments doesn't work

2013-05-30 Thread Jussi Lahtinen
It's because ifconfig is bit weird... there is no --help option and so output is directed to standard error output (invalid option). This creates empty file: $ ( ifconfig --help ) 1> test.txt This creates file with the actual content: $ ( ifconfig --help ) 2> test.txt So, to use it with gambas

Re: [Gambas-user] Shell - commands with arguments doesn't work

2013-05-30 Thread Jesus
El 30/05/13 21:35, Kende Krisztián escribió: > An interesting example, why do not you use native methods? > > Dim item As String > > For Each item In Dir(User.Home).Sort() > >With Stat(User.Home & "/" & item) > > Print .Auth & " " & .User & " " & .Group & " " & .Size & " " & > .LastModifi

Re: [Gambas-user] Shell - commands with arguments doesn't work

2013-05-30 Thread Kende Krisztián
An interesting example, why do not you use native methods? Dim item As String For Each item In Dir(User.Home).Sort() With Stat(User.Home & "/" & item) Print .Auth & " " & .User & " " & .Group & " " & .Size & " " & .LastModified & " " & item End With Next > Hi all > > AFAIR this us

Re: [Gambas-user] Shell - commands with arguments doesn't work

2013-05-30 Thread Jesus
El 30/05/13 20:48, Jesus escribió: > Hi all > > AFAIR this used to work until now: > > Shell "ls -la" To variable > Exec ["ls", "-la"] To anothervariable > > But now, whatever command I use, if it has one or more arguments > beginning with a dash or double dash, I don't get any output. > > Quoting

[Gambas-user] Shell - commands with arguments doesn't work

2013-05-30 Thread Jesus
Hi all AFAIR this used to work until now: Shell "ls -la" To variable Exec ["ls", "-la"] To anothervariable But now, whatever command I use, if it has one or more arguments beginning with a dash or double dash, I don't get any output. Quoting it with Shell$() function does not help. Also, I've