gpt4 book ai didi

linux - 在终端中输入 "bash -v"命令后出现问题

转载 作者:太空宇宙 更新时间:2023-11-04 12:11:57 25 4
gpt4 key购买 nike

当我在终端输入 bash -v 命令时,突然所有 .bashrc 内容都显示在我的屏幕上。之后,当我按 Tab 按钮自动完成时,输出显示如下:

words[0]=${!ref}${COMP_WORDS[i]}
words[1]=${!ref}${COMP_WORDS[i]}
cword=1
words=("${@:3:2}")
cword="$3"
cur="$3"
cur="$3"
cword="$3"
prev="$3"
words=("${@:3:2}")
compgen -d -- "$quoted"
compgen -f -X "$xspec" -- $quoted
t/

不知道,怎么修的?

最佳答案

Man walks into a doctor's office and says "Doc, ya gotta help me, it hurts when I do this". The doctor replies "Well, stop doing that".

不是最好的幽默,但它提出了一个问题:为什么你首先运行bash -v(一)

-v 标志在详细模式下运行新的 bash 调用,它将输出大量内容以帮助调试。要停止它这样做,只需通过键入 exit 退出您运行的 bash shell。


(a) 可能您正在尝试获取版本,因为许多实用程序提供 -v 正是为了这个目的。如果那是意图,您应该使用 bash --version

关于linux - 在终端中输入 "bash -v"命令后出现问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48605410/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com