platform::shell(n)
π platform::shell β bestie edition π
ok so this is a page from the Tcl Bundled Packages manual, section n. Welcome, you're gonna love it here π«Ά
πΈ NAME πΈ
platform::shell β system identification support code and utilities β¨
like, it figures out what machine you're on. no cap.
π SYNOPSIS π
package require platform::shell ?1.1.4?
platform::shell::generic shell
platform::shell::identify shell
platform::shell::platform shell
π¦ DESCRIPTION π¦
So the platform::shell package is giving you a lil bundle of utility commands, and their whole thing is identifying the architecture of a specific Tcl shell. iconic behavior honestly.
Here's the tea: this package lets you identify the architecture of a Tcl shell that is different from the shell currently running the package. The only requirement? That other shell β the one you point at by its path β has to actually be executable on the current machine. That's it. That's the whole vibe check. π
Now for most platforms, this means the architecture of the interrogated shell is identical to the architecture of the running shell. But bestie, that is not generally true. Counter example incoming: all platforms that have both 32 and 64 bit variants, where a 64bit system is able to run 32bit code. On those, the running shell and the interrogated shell may have different 32/64 bit settings, and therefore different identifiers. π
And why do we care?? For applications like a code repository, it is important to identify the architecture of the shell which will actually run the installed packages, versus the architecture of the shell running the repository software. main character vs supporting cast, you know? π
β¨ COMMANDS β¨
platform::shell::identify shellβ does the exact same identification asplatform::identify, but for the specified Tcl shell instead of the running shell. same energy, different target π―platform::shell::generic shellβ does the exact same identification asplatform::generic, but for the specified Tcl shell instead of the running shell. yes it's the generic one and yes it still slays πplatform::shell::platform shellβ returns the contents oftcl_platform(platform)for the specified Tcl shell. just hands you the value, no drama, no notes π
π₯ KEYWORDS π₯
operating system, cpu architecture, platform, architecture
iykyk π
ok that's the whole page bestie, you ate that. this was platform::shell, version 1.1.4, from the platform::shell(n) corner of the Tcl Bundled Packages world β go forth and identify some architectures fr fr πβ¨ππ¦πΈπ«Ά
π¦ where this page comes from
- alpine 3.23: tcl9-doc 9.0.3-r0 Β· TCL
- alpine 3.24: tcl9-doc 9.0.3-r2 Β· TCL
- fedora 43: tcl-doc 1:9.0.2-1.fc43 Β· TCL AND GPL-3.0-or-later WITH Bison-exception-2.2 AND BSD-3-Clause
- fedora 44: tcl-doc 1:9.0.2-1.fc44 Β· TCL AND GPL-3.0-or-later WITH Bison-exception-2.2 AND BSD-3-Clause
- nixos 26.05: tcl 9.0.3
- nixpkgs unstable: tcl 9.1.0
- Copyright (c) 2006-2008 ActiveState Software Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms