file separator

Gives the separator of paths.

file separator ?NAME?

Description

Gives /, the separator of paths in ztcl. With NAME it gives the separator of the file system of NAME: / too.

Arguments

ArgumentTypeDefaultDescription
NAMEpathnoneA path of the file system to ask about.

Returns

The separator.

Examples

% file separator
/

% file separator a/b
/

Errors

Each call gives /. ztcl does not check the count of arguments of this subcommand (issue 688).

Differences from Tcl

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