file nativename

Gives a path in the form of the platform.

file nativename NAME

Description

Gives NAME with the separator of the platform. In the root folder the separator is / on each platform, so NAME stays as it is.

Arguments

ArgumentTypeDefaultDescription
NAMEpathrequiredThe path.

Returns

The path.

Examples

% file nativename a/b
a/b

Errors

% file nativename
wrong # args: should be "file nativename name"
-errorcode TCL WRONGARGS

Facts

Capability
file. A new interpreter does not have it until the host turns it on.
Tcl release
Tcl 9.1 and 8.6.
Since
ztcl 1.0.0-beta.1

See also