file link

Makes a link, or gives the target of a link; not available in ztcl.

file link ?-symbolic|-hard? LINK ?TARGET?

Description

In Tcl, makes LINK point at TARGET, or gives the target of LINK. In ztcl each call is an error.

Arguments

ArgumentTypeDefaultDescription
TARGETpathnoneThe path that the link points at.

Returns

An error in ztcl.

Examples

% catch {file link -symbolic lnk n.txt}
1

Errors

% file link -symbolic lnk n.txt
could not link: links are not available in the root folder
-errorcode POSIX EACCES {permission denied}

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