Rocksolid Light

News from da outaworlds

mail  files  register  groups  login

Message-ID:  

Is that really YOU that is reading this?


comp / comp.lang.tcl / how can I replace ~/ in tcl8 and 9 code?

SubjectAuthor
o how can I replace ~/ in tcl8 and 9 code?clt.to.davebr

1
Subject: how can I replace ~/ in tcl8 and 9 code?
From: clt.to.davebr@dfgh.net
Newsgroups: comp.lang.tcl
Organization: A noiseless patient Spider
Date: Mon, 19 Aug 2024 15:34 UTC
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: clt.to.davebr@dfgh.net
Newsgroups: comp.lang.tcl
Subject: how can I replace ~/ in tcl8 and 9 code?
Date: Mon, 19 Aug 24 15:34:39 GMT
Organization: A noiseless patient Spider
Lines: 9
Message-ID: <42917240816791001@llp>
Injection-Date: Mon, 19 Aug 2024 17:36:59 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="b63ceda211d0210d5fd366e647c03339";
logging-data="3075643"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX180MMnH9QhxxkDSAzpop1T0"
Cancel-Lock: sha1:QY3AcQRizF0n11EjAAsYjRUXmNE=
View all headers

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

1

rocksolid light 0.9.8
clearnet tor