bash - 在 Bash 中运行最后一个命令已损坏(!!)
问题描述
不知何故,我的 bash rc 脚本(数百行长且审查起来并不简单)正在中断!!
,我不知道如何快速调试它。我知道这一点,因为当我在没有用户配置的情况下运行 bash时,它工作正常。我怎样才能快速调试这个,或者有什么想到的?我没有在脚本中运行它——我是从命令行输入的。
$ !!
!!: command not found
$ echo $-
himBs
$ bash --version
GNU bash, version 4.4.20(1)-release (x86_64-pc-linux-gnu)
$ shopt
autocd off
cdable_vars off
cdspell off
checkhash off
checkjobs off
checkwinsize off
cmdhist on
compat31 off
compat32 off
compat40 off
compat41 off
compat42 off
compat43 off
complete_fullquote on
direxpand off
dirspell off
dotglob off
execfail off
expand_aliases on
extdebug off
extglob on
extquote on
failglob off
force_fignore on
globasciiranges off
globstar off
gnu_errfmt off
histappend off
histreedit off
histverify off
hostcomplete off
huponexit off
inherit_errexit off
interactive_comments on
lastpipe off
lithist off
login_shell on
mailwarn off
no_empty_cmd_completion off
nocaseglob off
nocasematch off
nullglob off
progcomp on
promptvars on
restricted_shell off
shift_verbose off
sourcepath on
xpg_echo off
解决方案
推荐阅读
- python - 如何用 matplotlib.image.AxesImage 对象制作 matplotlib funcanimation 动画?
- machine-learning - 机器学习相关性
- unit-testing - 运行 php 单元测试时在 null 上调用成员函数 extension()
- function - 网站代码与 Excel Vlookup 功能相同
- python - 无法将 Pandas DataFrame 系列转换为整数?
- ios - 如何将我的 SWIFT 函数转换为泛型?
- java - 尽管我添加了 java 插件,但 Gradle 找不到 testCompile
- python-3.x - 如何从网络二进制图像字节制作一个 numpy ndarray?
- python - PyQT5中的Python实时子进程输出和进度条
- java - 在存储 Java 8 LocalTime 时,我应该在 Oracle 数据库中使用哪种数据类型?