by zinid · 8y ago · 0 comments
$ ./install.tcl
...skipped...
Copying data to lib/tke/data... done.
Copying doc to lib/tke/doc... done.
Copying lib to lib/tke/lib... error!
error copying "lib" to "lib/tke/lib": "lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/...skipped.../tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/lib/tke/doc/md/TKE Developer Guide/Plugin Development/Safe (Untrusted) Interpreter Description.md": file name too longIt would try to copy lib/ into itself, resulting in your "lib/tke/lib/tke/lib/tke/..." mess.
Like:
$ mkdir lib
$ mkdir lib/tke
$ tclsh
% file copy lib lib/tke/lib
error copying "lib" to "lib/tke/lib": "lib/tke/lib/tke/[cut off long string here]": file name too long
Specify a root directory other than the current directory and it should work.I wonder if tcl should disallow copying a directory into itself.
Edit: I opened a bug report for tcl: https://core.tcl.tk/tcl/tktview/82049f96f841214bb8cee18e1bf8...