From c626e988feb1c452fd404687b5c79a9dfd3f9d97 Mon Sep 17 00:00:00 2001 From: Russtopia Date: Tue, 9 Dec 2025 00:42:25 -0800 Subject: [PATCH] Update 'README.md' with info on MINGW_ROOT env var for using xc in MSYS2 environment --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 84d37d5..d838ee5 100644 --- a/README.md +++ b/README.md @@ -211,6 +211,12 @@ If no leading / is specified in src-or-dest-path, it is assumed to be relative t remote user. File operations are all performed as the remote user, so account permissions apply as expected. +When running under MSYS2, one must set the MINGW_ROOT environment variable to assist in +determining how to convert Windows paths to UNIX-style paths. This should be the installation path +of one's MSYS2 environment (eg., _C:/msys2_). Go's stdlib, under the hood, still uses Windows +style paths (drive letters and all) to locate other executables and _xc_ uses _tar_ as part of the copy +functionality. + Local (client) to remote (server) copy: ``` $ xc fileA /some/where/fileB /some/where/else/dirC joebloggs@host-or-ip:remoteDir