То, что вы делаете с ${...}
, называется Расширение параметра . Это расширит параметры -в вашем случае, параметр с именем shasum -a 256 "my file here.txt" | awk -F' ' '{print $1}'
, но это недопустимое имя параметра, как описано в Параметры :
.
A name may be any sequence of alphanumeric characters and underscores, or the single characters ‘*’, ‘@’, ‘#’, ‘?’, ‘-’, ‘$’, or ‘!’
На самом деле вы хотите запустить все в ${...}
, и для этого вам нужна Подстановка команд , которая использует круглые скобки вместо фигурных скобок:
↪ touch "my file here.txt"
↪ _test="$(shasum -a 256 "my file here.txt" | awk -F' ' '{print $1}')"
↪ echo $_test
e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
Из вашего журнала:
/usr/libexec/gdm-x-session[2835]: (EE) NVIDIA: Failed to initialize the NVIDIA kernel module. Please see the
/usr/libexec/gdm-x-session[2835]: (EE) NVIDIA: system's kernel log for additional error messages and
/usr/libexec/gdm-x-session[2835]: (EE) NVIDIA: consult the NVIDIA README for details.
/usr/libexec/gdm-x-session[2835]: (EE) No devices detected.
/usr/libexec/gdm-x-session[2835]: (EE)
/usr/libexec/gdm-x-session[2835]: Fatal server error:
/usr/libexec/gdm-x-session[2835]: (EE) no screens found(EE)
Драйверы NVIDIA в настоящее время несовместимы с ядром 5.9. Пожалуйста, используйте 5.8 и следите заhttps://forums.developer.nvidia.com/c/gpu-unix-graphics/linux/148
Изhttps://forums.developer.nvidia.com/t/nvidia-driver-not-yet-supported-for-linux-kernel-5-9/157260
Due to an incompatibility issue, we advise customers to defer updating to Linux Kernel 5.9+ until mid-November when an NVIDIA Linux GPU driver update with Kernel 5.9+ support is expected to be available.
Linux Kernel 5.9+ is incompatible with current and previous NVIDIA Linux GPU drivers. We advise customers to defer updating to Linux Kernel 5.9+ until mid-November when an NVIDIA Linux GPU driver update with Kernel 5.9+ support is expected to be available. NVIDIA is aware of the impact this will have on customers, and we are working diligently to provide the driver update with Kernel 5.9+ support as soon as possible.
Customers must use our upcoming driver update on Kernel 5.9+ to have a fully functioning driver.