From 96466972c70a61becc8c332d0b991038ab7028f1 Mon Sep 17 00:00:00 2001 From: Steve Bennett Date: Mon, 15 Nov 2010 11:24:31 +1000 Subject: Remove the bio extension and add 'copyto' to aio. The bio extension is a hangover from TinyTcl. Since Jim supports binary strings, there isn't much need for it except for 'bio copy'. So move this to aio as 'copyto' and implement 'file copy' in terms of it. Signed-off-by: Steve Bennett --- tclcompat.tcl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tclcompat.tcl') diff --git a/tclcompat.tcl b/tclcompat.tcl index 4589f56..0f9bec9 100644 --- a/tclcompat.tcl +++ b/tclcompat.tcl @@ -115,7 +115,7 @@ proc {file copy} {{force {}} source target} { error "error copying \"$source\" to \"$target\": file already exists" } set out [open $target w] - bio copy $in $out + $in copyto $out $out close } on error {msg opts} { incr opts(-level) -- cgit v1.1