Showing my age here, but I have several GAWK programs which don’t run in a Windows guest (XP, 7, 10) on a Mac host (Big Sur) when they open two files at the same time in a Shared Folder which is on an exFAT partition on the host.
This is a small example:
BEGIN {
printf "Test one\n" > "file1"
printf "Test two\n" > "file2"
exit
}
If the above program is in file bug.awk and you run gawk -f bug.awk, you will get
gawk: vmbug.awk:3: fatal: can't redirect to `file2' (File exists)
It is fine to open just one file, or the close the first before opening the second. It is also fine if the second file happens to exist already - it will happily be overwritten properly.
I have tested this in multiple situations: native Windows (NTFS and exFAT), native MacOS (APFS and exFAT) - no problem. Also no problem on Fusion 12 (host Mac, guest Windows) unless the folder in which the program is run is exFAT on the Mac host and Shared through Fusion to the Windows guest. Windows guests either XP, 7, or 10, and GAWK 3 or 4, all behave the same.
Searched for solutions everywhere but either not enough or it is not mentioned before.
My suspicion is that this is why some other programs are also failing, sometimes crashing Fusion altogether.
Any clues?