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
| Argument | Type | Default | Description |
|---|---|---|---|
| NAME | path | none | A 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
- Tcl 8.6.16 and 9.0.4 give
\on Windows, and an error for more than one argument (issue 686, issue 688).
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