• Convert Simple Shell from Baja to JS

    From Thomas McCaffery@VERT to GitLab note in main/sbbs on Sat Jun 13 15:03:47 2026
    https://gitlab.synchro.net/main/sbbs/-/merge_requests/698#note_9343

    This line is bugging me #fall through exec_bin "str_cmds %s" end_cmd I am guessing if no commands it goes here! I am not sure how to call this in JS in this shell. Other's use ; and command correct?

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From nelgin@VERT/EOTLBBS to Thomas McCaffery on Sat Jun 13 19:26:24 2026
    On Sat, 13 Jun 2026 15:03:47 -0700
    "Thomas McCaffery" (VERT) <VERT!Thomas.McCaffery@endofthelinebbs.com>
    wrote:
    https://gitlab.synchro.net/main/sbbs/-/merge_requests/698#note_9343

    This line is bugging me #fall through exec_bin "str_cmds %s" end_cmd
    I am guessing if no commands it goes here! I am not sure how to call
    this in JS in this shell. Other's use ; and command correct?

    ---
    ­ Synchronet ­ Vertrauen ­ Home of Synchronet ­
    [vert/cvs/bbs].synchro.net
    Maybe some more context would be useful but in JS you would use // for
    a single line comment or /* whatever */ for a comment block.
    --
    End Of The Line BBS - Plano, TX
    telnet endofthelinebbs.com 23
    ---
    ­ Synchronet ­ End Of The Line BBS - endofthelinebbs.com
  • From Rob Swindell@VERT to GitLab note in main/sbbs on Sat Jun 13 18:19:15 2026
    https://gitlab.synchro.net/main/sbbs/-/merge_requests/698#note_9350

    Other shell's use the ; prefix for string commands, yes, but not the simple shell.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to GitLab note in main/sbbs on Sat Jun 13 18:21:59 2026
    https://gitlab.synchro.net/main/sbbs/-/merge_requests/698#note_9351

    Why is this a while() loop?

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to GitLab note in main/sbbs on Sat Jun 13 18:23:04 2026
    https://gitlab.synchro.net/main/sbbs/-/merge_requests/698#note_9351

    Looks like a potentially infinite loop (when console.getkey() returns some unexpected value).

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to GitLab note in main/sbbs on Sat Jun 13 18:24:29 2026
    https://gitlab.synchro.net/main/sbbs/-/merge_requests/698#note_9352

    white-space/indent issue

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to GitLab note in main/sbbs on Sat Jun 13 18:24:42 2026
    https://gitlab.synchro.net/main/sbbs/-/merge_requests/698#note_9353

    white-space/indent issue

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to GitLab note in main/sbbs on Sat Jun 13 18:25:33 2026
    https://gitlab.synchro.net/main/sbbs/-/merge_requests/698#note_9354

    Why is this function being reimplemented here?

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Thomas McCaffery@VERT to GitLab note in main/sbbs on Sat Jun 13 19:32:56 2026
    https://gitlab.synchro.net/main/sbbs/-/merge_requests/698#note_9355

    I am rechecking it. It was a draft, I see a lot of mistakes.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to GitLab note in main/sbbs on Sat Jun 13 22:58:38 2026
    https://gitlab.synchro.net/main/sbbs/-/merge_requests/698#note_9364

    This is just going to eat the CPU while waiting for keypress. Why?

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to GitLab note in main/sbbs on Sat Jun 13 22:58:48 2026
    https://gitlab.synchro.net/main/sbbs/-/merge_requests/698#note_9364

    This while loop is just going to eat the CPU while waiting for keypress. Why?

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net