[Gambas-user] How to specify a string constant in an Exec statement

Bruce adamnt42 at gmail.com
Sun Jul 12 11:26:26 CEST 2020



On 12/7/20 6:49 pm, Bruce wrote:
> No,no,no,no,no!
> 
> 1. There us no closing ]
> 
> 2. Exec does NOT pre-process the arguments you give it. Try
>      get_iplayer '\".\"' --type=TV
>    in a terminal and see what it says. You have to understand exactly 
> what gambas sends to the exec system call. N.B. exec system call not 
> "Exec" system call.
> 
> 3. try in gambas
>      Exec ["get_iplayer","'.*","--type=TV"] To sOutput
>    It's a guess
> 
> 4. Pay particular attention to the single and double quotes in the above.
> 
> hth
> bruce
> 
> On 12/7/20 5:06 pm, John Rose wrote:
>> Exec ["get_iplayer", "\".*\"", "--type=TV" To sOutput

p.s. I just realised myself !
3. Is not going to work because there is NO SHELL to expand the .*
read the fine help.


More information about the User mailing list