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
| Argument | Type | Default | Description |
|---|---|---|---|
| LINK | path | required | The path of the link. |
| TARGET | path | none | The 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
- Tcl 8.6.16 and 9.0.4 make links (issue 687).
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