• New Door Games

    From Black Panther@21:1/186 to Apam on Thursday, July 25, 2019 13:24:44
    Hi Andrew,

    I've installed a few of the new games you've written. I like them! :) I'm jealous... :)

    Anyway, I did run into some issues with the build.sh file. It might be something with my system, but it seemed like it didn't like line 11. It wouldn't execute the make command in the odoors sub-directory. If I ran the lines in the terminal, it would work...

    Like I said, it may be something on my system, as I had to rebuild it yesterday...


    ---

    |03B|09lack |03P|09anther|03(|09RCS|03)|07

    --- Mystic BBS v1.12 A43 2019/03/02 (Linux/64)
    * Origin: Castle Rock BBS - bbs.castlerockbbs.com (21:1/186)
  • From Black Panther@21:1/186 to Apam on Thursday, July 25, 2019 15:00:12
    On 25 Jul 2019, Black Panther said the following...

    Anyway, I did run into some issues with the build.sh file. It might be something with my system, but it seemed like it didn't like line 11. It wouldn't execute the make command in the odoors sub-directory. If I ran the lines in the terminal, it would work...

    Update! If I change the shebang to use bash, it works just fine. For some reason sh doesn't like a couple of the lines...


    ---

    |03B|09lack |03P|09anther|03(|09RCS|03)|07

    --- Mystic BBS v1.12 A43 2019/03/02 (Linux/64)
    * Origin: Castle Rock BBS - bbs.castlerockbbs.com (21:1/186)
  • From Vk3jed@21:1/109 to Black Panther on Friday, July 26, 2019 08:14:00
    On 07-25-19 15:00, Black Panther wrote to Apam <=-

    Update! If I change the shebang to use bash, it works just fine. For
    some reason sh doesn't like a couple of the lines...

    Looks like a script writer that assumed everyone uses BASH as their shell. :) I always put the shebang in my scripts, rather than assume it will "just work" for everyone.


    ... To see the rest of the message, press ENTER...
    === MultiMail/Win v0.51
    --- SBBSecho 3.03-Linux
    * Origin: Freeway BBS Bendigo,Australia freeway.apana.org.au (21:1/109)
  • From Black Panther@21:1/186 to Vk3jed on Thursday, July 25, 2019 16:36:28
    On 26 Jul 2019, Vk3jed said the following...

    Update! If I change the shebang to use bash, it works just fine. For some reason sh doesn't like a couple of the lines...

    Looks like a script writer that assumed everyone uses BASH as their
    shell. :) I always put the shebang in my scripts, rather than assume it will "just work" for everyone.

    It had the shebang of #!/bin/sh, which didn't work on Debian 10. I changed it to #!/bin/bash and it worked with no problem.

    Minor inconvenience... ;)


    ---

    |03B|09lack |03P|09anther|03(|09RCS|03)|07

    --- Mystic BBS v1.12 A43 2019/03/02 (Linux/64)
    * Origin: Castle Rock BBS - bbs.castlerockbbs.com (21:1/186)
  • From Apam@21:1/125 to Vk3jed on Friday, July 26, 2019 10:09:24
    Re: Re: New Door Games
    By: Vk3jed to Black Panther on Fri Jul 26 2019 08:14 am

    Looks like a script writer that assumed everyone uses BASH as their shell. :) I always put the shebang in my scripts, rather than assume it will "just work" for everyone.

    If I assumed bash was the shell I would have written /bin/bash. That won't work
    on freebsd because bash, if it is installed, would be in /usr/local/bin/bash. So I tried to make it compatible with sh, and it is compatible with FreeBSD's sh, just seems to not be with debians dash.

    Andrew
    --- SBBSecho 3.07-FreeBSD
    * Origin: Nocturnal - nocturnal.hopto.org:2023 (21:1/125)
  • From Vk3jed@21:1/109 to Black Panther on Friday, July 26, 2019 14:54:00
    On 07-25-19 16:36, Black Panther wrote to Vk3jed <=-

    It had the shebang of #!/bin/sh, which didn't work on Debian 10. I
    changed it to #!/bin/bash and it worked with no problem.

    I always use #!/bin/bash in my scripts, because /bin/sh is usually a symbolic link, and on Debian, it's generally not pointing to /bin/bash. :)


    ... Staring into a dragon's jaws, one quickly learns wisdom.
    === MultiMail/Win v0.51
    --- SBBSecho 3.03-Linux
    * Origin: Freeway BBS Bendigo,Australia freeway.apana.org.au (21:1/109)
  • From Vk3jed@21:1/109 to Apam on Friday, July 26, 2019 14:56:00
    On 07-26-19 10:09, Apam wrote to Vk3jed <=-

    Re: Re: New Door Games
    By: Vk3jed to Black Panther on Fri Jul 26 2019 08:14 am

    Looks like a script writer that assumed everyone uses BASH as their shell. :) I always put the shebang in my scripts, rather than assume it will "just work" for everyone.

    If I assumed bash was the shell I would have written /bin/bash. That
    won't work
    on freebsd because bash, if it is installed, would be in /usr/local/bin/bash. So I tried to make it compatible with sh, and it
    is compatible with FreeBSD's sh, just seems to not be with debians
    dash.

    I'd suggest FreeBSD sysadmins who have bash installed have a link in /bin/bash pointing to the actual shell binary. :)


    ... An instantaneous power-supply crowbar circuit will operate too late.
    === MultiMail/Win v0.51
    --- SBBSecho 3.03-Linux
    * Origin: Freeway BBS Bendigo,Australia freeway.apana.org.au (21:1/109)