无法在 Bash 4 中使用 Checkjobs 和 Autocd
Bash 4 中有新选项:checkjobs 和 autocd。 时没有找到它们的文档,
man bash
但是,我在运行失败
{checkjobs,autocd}
中找到了以下内容
There is a new `checkjobs` option that causes the shell to check for and
report any running or stopped jobs at exit
我在发行说明和
There is a new `autocd` option that, when enabled, causes bash to attempt
to `cd` to a directory name that is supplied as the first word of a
simple command.
How can you use autocd and checkjobs?
There are new options in Bash 4: checkjobs and autocd.
However, I did not find documentation for them at
man bash
I run unsuccessfully
{checkjobs,autocd}
I found the following in release notes
There is a new `checkjobs` option that causes the shell to check for and
report any running or stopped jobs at exit
and
There is a new `autocd` option that, when enabled, causes bash to attempt
to `cd` to a directory name that is supplied as the first word of a
simple command.
How can you use autocd and checkjobs?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
autocd
和checkjobs
不是命令,而是选项。可以使用
shopt内置
。
示例:
和
或
设置两者。
autocd
andcheckjobs
are not commands, but rather, they are options.They can be set by using the
shopt
built-in.Example:
and
or
to set both.