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

    From clt.to.davebr@[email protected] to comp.lang.tcl on Mon Aug 19 15:34:39 2024
    From Newsgroup: comp.lang.tcl

    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

    --- Synchronet 3.20a-Linux NewsLink 1.114