简而言之:
bir@N2C:~/conda$ source deactivate root
Error: too many arguments.
bir@N2C:~/conda$ conda-env list
# conda environments:
#
root * /home/bir/conda
bir@N2C:~/conda$ source deactivate root
Error: too many arguments. # I also tried from ~
这似乎不是this almost identically titled question中的问题,它将问题归因于使用" set"在bash配置中:
bir@N2C:~$ ls -a | grep bash
.bash_aliases
.bash_history
.bash_logout
.bashrc
最小脚本也表示没有默认参数:
bir@N2C:~/bin$ cat ./test
#!/bin/bash
echo "$1"
bir@N2C:~/bin$ ./test
# $1 set by default would be here wouldn't it?
bir@N2C:~/bin$
所以我很难过......
答案 0 :(得分:2)
搜索上面显示的bash文件,查找包含set的任何命令。如果你有它们,要么将它们注释掉,要么将它们移动到〜/ .inputrc。