I wanted to ask for advice on whether I am moving in the right direction or not. On the subject, the operating systems gave the task, to write a program adapting linux commands (rm, tail, cd, ls, comm, cd) under windows (literally, the teacher said that they would work in windows like in linux). Actually, the question arose whether it was possible to compile instances of coreutils utilities under windows, create an “environment” for them that they would “think” that they run under linux (with the appropriate stubs) and execute? Ie my program will be a kind of aggregator of commands available to the user, which recreates the linux environment, runs the command file, redirects arguments to it, and redirects its output to the windows console. About cygwin, mingw and terminal emulators under windows I know, do not fit the condition of the problem.
busyboxfor Windows, everything is in one binary right away. - 0andriy