Currently I encountered the following situation when bash script freeze on
PID=`cat test.pid`
After the analysis it was found that even this commands freeze
TEST=$(echo 1)
TEST=`echo 1`
Using set -x in bash script, I can see the following output
+ echo 1
1
++ echo 1
for script
#!/bin/bash
set -x
echo 1
TEST=$(echo 1)
set +x
This script is called from Qt process and everything have worked lately. When I call this script manually from bash it also works, but when I do it from process it fails. Currently I'm looking for possible reasons of such freezes, and I've no more ideas. When I printed environments they matched, but I also can't prinenv inside `` as it freezes also.