.bash_aliases文件在打开终端时创建错误输出

时间:2015-04-18 17:44:45

标签: linux bash mint

试图找出创建.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

1 个答案:

答案 0 :(得分:2)

bash脚本没有用于注释的C语法。 不应使用/ * * /标记注释,而应使用开始注释行 #