Zapeklite. Vypada jakoby se to zacyklilo nekde v Intel oneapi setvars.
~/tmp/mcout $ grep '^904026 open' mc_strace_with_subshell | grep -v "No such file or directory"
904026 openat(AT_FDCWD, "/opt/intel/fakeintel/libfakeintel.so", O_RDONLY|O_CLOEXEC) = 3
904026 openat(AT_FDCWD, "/usr/lib/x86_64-linux-gnu/libtinfo.so.6", O_RDONLY|O_CLOEXEC) = 3
904026 openat(AT_FDCWD, "/usr/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
904026 openat(AT_FDCWD, "/dev/tty", O_RDWR|O_NONBLOCK) = 3
904026 openat(AT_FDCWD, "/usr/lib/locale/locale-archive", O_RDONLY|O_CLOEXEC) = 3
904026 openat(AT_FDCWD, "/usr/lib/x86_64-linux-gnu/gconv/gconv-modules.cache", O_RDONLY) = 3
904026 openat(AT_FDCWD, "/etc/nsswitch.conf", O_RDONLY|O_CLOEXEC) = 3
904026 openat(AT_FDCWD, "/etc/passwd", O_RDONLY|O_CLOEXEC) = 3
904026 openat(AT_FDCWD, "/lib/terminfo/x/xterm-256color", O_RDONLY) = 3
904026 openat(AT_FDCWD, "/etc/bash.bashrc", O_RDONLY) = 3
904026 openat(AT_FDCWD, "/opt/cdf/bin/definitions.B", O_RDONLY) = 3
904026 openat(AT_FDCWD, "/dev/null", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 3
904026 openat(AT_FDCWD, "/opt/intel/oneapi/setvars.sh", O_RDONLY) = 3
904026 openat(AT_FDCWD, "/opt/AMD/aocc-compiler-4.1.0/setenv_AOCC.sh", O_RDONLY) = 3
904026 openat(AT_FDCWD, "/opt/AMD/aocl/aocl-linux-aocc-4.1.0/aocc/amd-libs.cfg", O_RDONLY) = 3
904026 openat(AT_FDCWD, "/home/velimsky/.bash_history", O_RDONLY) = 3
904026 openat(AT_FDCWD, "/home/velimsky/.bash_history", O_RDONLY) = 3
904026 openat(AT_FDCWD, "/etc/inputrc", O_RDONLY) = 3
A u toho bez subshellu to nedojde dal:
~/tmp/mcout $ grep '^903017 open' mc_strace_without_subshell
903017 openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
903017 openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libtinfo.so.6", O_RDONLY|O_CLOEXEC) = 3
903017 openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
903017 openat(AT_FDCWD, "/dev/tty", O_RDWR|O_NONBLOCK) = 3
903017 openat(AT_FDCWD, "/usr/lib/locale/locale-archive", O_RDONLY|O_CLOEXEC) = 3
903017 openat(AT_FDCWD, "/usr/lib/x86_64-linux-gnu/gconv/gconv-modules.cache", O_RDONLY) = 3
903017 openat(AT_FDCWD, "/etc/nsswitch.conf", O_RDONLY|O_CLOEXEC) = 3
903017 openat(AT_FDCWD, "/etc/passwd", O_RDONLY|O_CLOEXEC) = 3
903017 openat(AT_FDCWD, "/lib/terminfo/x/xterm-256color", O_RDONLY) = 3
903017 openat(AT_FDCWD, "/etc/bash.bashrc", O_RDONLY) = 3
903017 openat(AT_FDCWD, "/opt/cdf/bin/definitions.B", O_RDONLY) = 3
903017 openat(AT_FDCWD, "/dev/null", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 3
903017 openat(AT_FDCWD, "/opt/intel/oneapi/setvars.sh", O_RDONLY) = 3
903017 openat(AT_FDCWD, "/opt/intel/oneapi/advisor/latest/env/vars.sh", O_RDONLY) = 3
903017 openat(AT_FDCWD, "/opt/intel/oneapi/ccl/latest/env/vars.sh", O_RDONLY) = 3
903017 openat(AT_FDCWD, "/opt/intel/oneapi/compiler/latest/env/vars.sh", O_RDONLY) = 3
903017 openat(AT_FDCWD, "/opt/intel/oneapi/compiler/2024.0/opt/oclfpga/fpgavars.sh", O_RDONLY) = 3
903017 openat(AT_FDCWD, "/opt/intel/oneapi/dal/latest/env/vars.sh", O_RDONLY) = 3
903017 openat(AT_FDCWD, "/opt/intel/oneapi/debugger/latest/env/vars.sh", O_RDONLY) = 3
903017 openat(AT_FDCWD, "/opt/intel/oneapi/dev-utilities/latest/env/vars.sh", O_RDONLY) = 3
903017 openat(AT_FDCWD, "/opt/intel/oneapi/dnnl/latest/env/vars.sh", O_RDONLY) = 3
903017 openat(AT_FDCWD, "/opt/intel/oneapi/dpcpp-ct/latest/env/vars.sh", O_RDONLY) = 3
903017 openat(AT_FDCWD, "/opt/intel/oneapi/dpl/latest/env/vars.sh", O_RDONLY) = 3
903017 openat(AT_FDCWD, "/opt/intel/oneapi/inspector/latest/env/vars.sh", O_RDONLY) = 3
903017 openat(AT_FDCWD, "/opt/intel/oneapi/ipp/latest/env/vars.sh", O_RDONLY) = 3
903017 openat(AT_FDCWD, "/opt/intel/oneapi/ippcp/latest/env/vars.sh", O_RDONLY) = 3
903017 openat(AT_FDCWD, "/opt/intel/oneapi/itac/latest/env/vars.sh", O_RDONLY) = 3
903017 openat(AT_FDCWD, "/opt/intel/oneapi/mkl/latest/env/vars.sh", O_RDONLY) = 3
903017 openat(AT_FDCWD, "/opt/intel/oneapi/mpi/latest/env/vars.sh", O_RDONLY) = 3
903017 openat(AT_FDCWD, "/opt/intel/oneapi/tbb/latest/env/vars.sh", O_RDONLY) = 3
Zkuste dat exit 0 na zacatek do toho /opt/intel/oneapi/setvars.sh
pro zjisteni jestli to kazi setvars.sh.
To opravdu vypada na ty environment promenne. Zkuste si pohrat s .bash_profile .profile .bashrc
Podivat se na defaulty v /etc/skel/ a porovnat s tim co mate v home. Jestli treba neschazi
source $HOME/.bashrc v .profile
Kdyz nepomuze tak nezbyde nez poustet terminal a pak az rucne mc
Toz drzim palce.
\K