gpt4 book ai didi

linux - 打开终端时.bash_aliases 文件会创建错误输出

转载 作者:太空宇宙 更新时间:2023-11-04 04:46:54 27 4
gpt4 key购买 nike

试图找出为什么当创建 .bash_aliases 文件时,它现在在打开新终端窗口时添加错误输出。文件内的别名工作正常,但我不想每次打开终端时都会生成错误消息。应该注意的是,我创建了 .bash_aliases 文件,因为它之前没有生成。

下面是.bash_aliases文件

/*These are my own Aliases
Author:Jose Estrada
*/
alias Rpi='ssh -X pi@169.254.11.26'

Blow是错误信息

bash: /*These: No such file or directory
Failed to import the site module
Traceback (most recent call last):
File "/usr/lib/python3.4/site.py", line 586, in <module>
main()
File "/usr/lib/python3.4/site.py", line 572, in main
known_paths = addusersitepackages(known_paths)
File "/usr/lib/python3.4/site.py", line 287, in addusersitepackages
user_site = getusersitepackages()
File "/usr/lib/python3.4/site.py", line 263, in getusersitepackages
user_base = getuserbase() # this will also set USER_BASE
File "/usr/lib/python3.4/site.py", line 253, in getuserbase
USER_BASE = get_config_var('userbase')
File "/usr/lib/python3.4/sysconfig.py", line 597, in get_config_var
return get_config_vars().get(name)
File "/usr/lib/python3.4/sysconfig.py", line 540, in get_config_vars
_init_posix(_CONFIG_VARS)
File "/usr/lib/python3.4/sysconfig.py", line 412, in _init_posix
from _sysconfigdata import build_time_vars
File "/usr/lib/python3.4/_sysconfigdata.py", line 6, in <module>
from _sysconfigdata_m import *
ImportError: No module named '_sysconfigdata_m'
bash: Arduino/: Is a directory

最佳答案

bash 脚本没有用于注释的 C 语法。您应该使用以下命令开始注释行,而不是使用/* */标记注释#

关于linux - 打开终端时.bash_aliases 文件会创建错误输出,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29720697/

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