小编Raj*_*jan的帖子

在您的系统上检测到过时的 bash 版本!更新 sdkman 时

我正在尝试更新sdman我的 macOS 中的软件,但我收到 bash outadted 版本错误。

rajkumar.natarajan$ sdk update   
    An outdated version of bash was detected on your system!
    We recommend upgrading to bash 4.x, you have:

    3.2.57(1)-release
    Need to use brute force to replace candidates...
Run Code Online (Sandbox Code Playgroud)

但是 bash 版本已经是最新的了。

rajkumar.natarajan$ which bash 
/usr/local/bin/bash   
rajkumar.natarajan$ bash --version   
GNU bash, version 5.0.11(1)-release (x86_64-apple-darwin16.7.0)
Copyright (C) 2019 Free Software Foundation, Inc.   
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>

This is free software; you are free to change and redistribute …
Run Code Online (Sandbox Code Playgroud)

osx bash gpl

6
推荐指数
1
解决办法
700
查看次数

ps 中不显示使用 screen 命令的 sleep 命令

我在终端中使用屏幕和分离模式运行 sleep 命令。
一旦屏幕立即返回,我就会运行ps命令来验证睡眠是否正在运行。

$ screen -d -m 'sleep 2m'
[raj@localhost ~]$ ps
PID TTY          TIME CMD
22795 pts/0    00:00:00 bash
22869 pts/0    00:00:00 ps
Run Code Online (Sandbox Code Playgroud)

但是命令没有显示睡眠。我在这里做错了什么?

scripting gnu-screen ps

4
推荐指数
1
解决办法
930
查看次数

ls:fedora 33 中 LS_COLORS 环境变量 zshell 的不可解析值

我在 Fedora 33 操作系统中使用 zshell。

我以前做的配置在我的~/.zshrc文件

每当我运行ls命令时,我都会收到以下错误 -

ls: unparsable value for LS_COLORS environment variable
Run Code Online (Sandbox Code Playgroud)

我该如何解决这个错误?

当我做回声时,LS_COLORS 是正确的。

M. ~ 
? echo $LS_COLORS
GxFxCxDxBxegedabagaced
Run Code Online (Sandbox Code Playgroud)

ls coreutils

0
推荐指数
1
解决办法
34
查看次数

标签 统计

bash ×1

coreutils ×1

gnu-screen ×1

gpl ×1

ls ×1

osx ×1

ps ×1

scripting ×1