I want to do the "echo" command, which is used to show the variable content in the linux terminal, using the GUI. I wrote this using qProcess, but it only printed $SHELL as output.
QString cmd = "echo $SHELL";
QProcess *process = new QProcess;
process->start(cmd);
process->waitForBytesWritten();
process->waitForFinished();
qDebug() << process->readAll();`
Qt code output:$SHELL ........................................
Terminal command: [intern2atlas SETUP]$ echo $SHELL
output:/bin/tcsh