You could try cygpath:
$ cygpath -w /tmp/infile1.txt
C:\msys64\tmp\infile1.txt
But that seems annoying. I might try using relative paths so no conversion
is needed and your script can be cross-platform without much effort. You
can use `cd` to navigate to a different directory before running the
In a mingw64 shell if one does something like:
program -in /tmp/infile.txt -out /tmp/outfile.txt
it will generally work because somewhere or other this will happen:
/tmp/infile.txt -> C:\progs\msys64\tmp\infile.txt
/tmp/outfile.txt -> C:\progs\msys64\tmp\outfile.txt
That this works so w