Artifact 358fc40db7a000514b7e464d1f3c6768c794c4644b2f70867e4368392ece1828:
- File doc/markdown/platform_shell.md — part of check-in [a9f9587f0b] at 2026-09-03 22:07:59 on branch tip-700 — - 9 more final conversions in Tcl section 3 - removed a .TP in timer.n that doesn't belong there (should be backported to trunk) - in the markdown files, consistently turn TCL_OK, TCL_ERROR and other return codes into links to the "catch" manual page, even if not in bold font (this also affects pages in the n section) - also link mentions of Tcl_Obj to the "Object" manual page of section 3 - also handle nroff quoting in ARGUMENTS section (user: Torsten, size: 2157) [annotate] [blame] [check-ins using]
CommandName: platform::shell ManualSection: n Version: 1.1.4 TclPart: platform::shell TclDescription: Tcl Bundled Packages Keywords:
- operating system
- cpu architecture
- platform
- architecture Copyright:
- Copyright (c) 2006-2008 ActiveState Software Inc ---
Name
platform::shell - System identification support code and utilities
Synopsis
::: {.synopsis} ::: [package]{.cmd} [require]{.sub} [platform::shell]{.lit} [1.1.4]{.optlit}
[platform::shell::generic]{.cmd} [shell]{.arg} [platform::shell::identify]{.cmd} [shell]{.arg} [platform::shell::platform]{.cmd} [shell]{.arg} :::
Description
The platform::shell package provides several utility commands useful for the identification of the architecture of a specific Tcl shell.
This package allows the identification of the architecture of a specific Tcl shell different from the shell running the package. The only requirement is that the other shell (identified by its path), is actually executable on the current machine.
While for most platform this means that the architecture of the interrogated shell is identical to the architecture of the running shell this is not generally true. A counter example are all platforms which have 32 and 64 bit variants and where a 64bit system is able to run 32bit code. For these running and interrogated shell may have different 32/64 bit settings and thus different identifiers.
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.
Commands
[platform::shell::identify]{.cmd} [shell]{.arg} : This command does the same identification as platform::identify, for the specified Tcl shell, in contrast to the running shell.
platform::shell::generic shell : This command does the same identification as platform::generic, for the specified Tcl shell, in contrast to the running shell.
platform::shell::platform shell : This command returns the contents of tcl_platform(platform) for the specified Tcl shell.