• how can I replace ~/ in tcl8 and 9 code?

    From [email protected]@21:1/5 to All on Mon Aug 19 15:34:39 2024
    Right now I've using a package that redefines [file] to add the home subcommand.
    Then: source ~/src/tcl/xx
    becomes: source [file join [file home] src/tcl/xx]
    which works in Tcl8 and 9

    Is there a simpler way to replace ~/ in code that needs to run under Tcl8 and Tcl9 ?

    daveb

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)