我有一个Linux脚本,它像这样读取用户输入:
read -er user_input
这可能会失败,因为-e在bash中是受支持的(可能还有其他一些shell),但是如果使用zsh,则会失败。我想出了这个:
{
# This may fail. The "e" option is a bash extension that allows user to
# use arrows to navigate the input. If it fails, we fall back to classic
# read and ignore the error
我已经尝试了几种方法,但在尝试为blackfin创建cmake时仍然出现以下错误:
CMake Error at CMakeLists.txt:116 (message):
Fatal error: QT (version >= 4.5.0) required. Cmake tries to detect QT4 by
searching for 'qmake' in your PATH.If you have QT4 installed, make sure
qmake is found in your PATH. If you compiled
自从Ubuntu服务器发布了崩溃漏洞补丁后,我就一直在升级Ubuntu服务器的内核。我注意到,几乎在所有服务器上,在重新启动之后,我必须运行两次apt autoremove才能清除系统上所有的旧内核。
如果我第一次运行它,它首先删除内核的两个旧版本:
% sudo apt autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
linux-headers-