• src/sbbs3/filedat.c xtrn.cpp

    From Rob Swindell@VERT to Git commit to main/sbbs/master on Mon Nov 15 17:58:08 2021
    https://gitlab.synchro.net/main/sbbs/-/commit/d1705535dacd3540d40522af
    Modified Files:
    src/sbbs3/filedat.c xtrn.cpp
    Log Message:
    Add command-line specifier for user's real name (auto-quoted)

    %+ will now expand to the current user's real name, automatically enclosed in quotes if it contains any spaces.

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Windows 11)@VERT to Git commit to main/sbbs/master on Thu Dec 14 16:39:05 2023
    https://gitlab.synchro.net/main/sbbs/-/commit/c6875ce6a952e85c3f6b9913
    Modified Files:
    src/sbbs3/filedat.c xtrn.cpp
    Log Message:
    Add command-line specifier %- for user's chat handle/call-sign

    That's percent minus, to go with percent plus (user's real name).

    The string is auto-quoted if it contains a space.

    For Keyop's use with rlogin.js, maybe.

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Windows 11)@VERT to Git commit to main/sbbs/master on Mon Nov 16 21:58:16 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/511a046be5e2ef9fc2555f0f
    Modified Files:
    src/sbbs3/filedat.c xtrn.cpp
    Log Message:
    cmdstr: quote the Windows %~ path when it has no 8.3 short name

    On Windows, the %~ command-line specifier substitutes the result of GetShortPathName(), appended unquoted since 652fe9ca525 (2001-03-02).
    For a file with no short name (8.3 name creation disabled on the
    volume, or a network share that doesn't provide them) that result is
    the long path, so a filename containing spaces was split into multiple arguments. Example: viewing "1994 post-Congenital demos.mp3" with the
    stock viewer "%@mp3info -x %~" failed with "Error opening MP3" for
    each word of the name, followed by an ERR_EXEC error in viewfile().

    Quote the substituted path when it contains shell-special characters,
    as %f and the non-Windows %~ already do.

    Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Windows 11)@VERT to Git commit to main/sbbs/master on Mon Nov 16 21:58:16 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/5fb71be120edf1b959fea2dc
    Modified Files:
    src/sbbs3/filedat.c xtrn.cpp
    Log Message:
    cmdstr: only quote the Windows %~ path when it contains whitespace

    The previous change ("cmdstr: quote the Windows %~ path when it has no
    8.3 short name") quoted the path whenever it contained any shell-
    special character. That set includes '~', which every generated 8.3
    short name contains, so ordinary short paths became quoted too, and
    the 16-bit DOS programs %~ exists for may not strip the quotes.

    Quote only a path that still contains a space or tab, i.e. one that GetShortPathName() could not shorten.

    Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

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