Commit 3fd0e2dc authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm-sh-functions: add test_shell to check if bash have no wrong output

parent b294e394
......@@ -856,8 +856,19 @@ assure_tmpdir()
fi
}
test_shell()
{
local R
R="$($CMDSHELL /dev/null 2>&1)"
[ -n "$R" ] && fatal "$CMDSHELL is broken (bash wrongly printing out '$R'). Check ~/.bashrc and /etc/bashrc, run $CMDSHELL manually for test."
}
set_distro_info()
{
test_shell
assure_tmpdir
set_bigtmpdir
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment