[Gambas-user] Problem with Shell Gambas 3.10.0

Shannon Kuchler shannon at inflecto.org
Thu Apr 19 22:25:09 CEST 2018


I don't know where my brain is today it just dawned on me that it's steamcmd that doesn't like long directory names in it's command line I bet if I replace the space in  the long directory name string with a  \space it'll do what it's supposed to

On April 19, 2018 1:55:13 PM CDT, Tobias Boege <taboege at gmail.com> wrote:
>
>On Thu, 19 Apr 2018, Shannon Kuchler wrote:
>> The exec works unless there are spaces in the directory name the in
>instead of downloading to "my dir"  it downloads to "my" which makes me
>think I need to in close it like this 'my dir' but steamcmd gives me an
>error same director does not exist unable to write to desk
>> 
>
>Exec takes everything you give to it literally. If you say
>
>  Exec ["ls", "'my dir'"]
>
>then, it will try to list the file 'my dir', including the single
>quotes as part of the path. This file doesn't exist, as it tells you.
>Single quotes, like spaces, are perfectly legal in a filename and
>Exec lets you use them without trying to interpret anything.
>
>Look at this snippet:
>
>  Public Sub Main()
>    File.Save("/tmp/a file with spaces", "")
>    Exec ["ls", "-Nl", "/tmp/a file with spaces"] Wait
>  End
>
>Executing it works:
>
>  $ ./test.gbs3
>  -rw-r--r-- 1 user group 0 Apr 19 20:53 /tmp/a file with spaces
>
>And steamcmd doesn't throw up when you invoke it from your interactive
>shell, by hand, and use a directory with spaces? If yes, I'm out of
>ideas.
>
>Regards,
>Tobi
>
>-- 
>"There's an old saying: Don't change anything... ever!" -- Mr. Monk
>
>--------------------------------------------------
>
>This is the Gambas Mailing List:
>https://lists.gambas-basic.org/listinfo/user
>
>Search the list:
>https://lists.gambas-basic.org/cgi-bin/search.cgi
>
>Hosted by https://www.hostsharing.net

-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20180419/a4da9e74/attachment.html>


More information about the User mailing list