I am trying to run under QProcess the bash.exe from git. I've checked if the process is running and if the file exists and confirmed these but when trying to write to process a command and after that have "\n\r" it doesn't do anything.
Sample code:
QProcess *proc = new QProcess();
proc->start("C:\\Program Files\\Git\\bin\\bash.exe");
proc->waitForStarted();
proc->write("ls\n\r");
proc->waitForBytesWritten();
proc->waitForReadyRead();
# neither proc->readAll() nor proc->readAllStandardOutput(); fetch anything
# tried even proc->readAllStandardError(); but no luck as well.
So it just sits there and I don't get the directory listing. What might be the problem?