• docs/v322_new.md src/sbbs3/xtrn.cpp

    From Rob Swindell (on Windows 11)@VERT to Git commit to main/sbbs/master on Fri Dec 4 23:00:54 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/ad825cc27d62e15e433a5898
    Modified Files:
    docs/v322_new.md src/sbbs3/xtrn.cpp
    Log Message:
    cmdstr(): quote arguments containing a directory with a space

    A command-line argument built from a lowercase %g, %j, %k, %n or %z, or a
    %! or %@, is now wrapped in double-quotes when that directory's path
    contains a space or another SHELL_QUOTE_CHARS character, e.g.
    "/PATH=C:\Program Files\sbbs\node1\\". The whole space-delimited argument
    is quoted, not just the directory, since these specifiers usually prefix
    a filename (%!syspage.wav, %ndoor.sys) and both CreateProcess() (for the program path) and js_execfile() only honor a quote that starts an
    argument.

    For native Windows programs, trailing backslashes inside the quotes are doubled: the C run-time's argv parser otherwise reads the closing \" as
    an escaped quote. ?/* modules don't get the doubling; js_execfile()
    gives backslashes no special meaning.

    Arguments that already contain a double-quote are left alone, so
    hand-quoted command lines (e.g. /PATH="%n.") keep working. DOS programs
    are not quoted, and the uppercase forms (%G, %J, %K, %N, %Z) remain
    unquoted, matching the existing %a/%A, %f/%F, %o/%O convention.

    Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

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