当我从某个位置获取文件时,遇到了太多参数错误,如下所示:
joesan@joesan-InfinityBook-S-14-v5:~$ source '/opt/ros/noetic/setup.bash'
bash: cd: too many arguments
我尝试使用双引号,而不使用引号,但此错误仍然存在。知道为什么会发生这种情况吗?
以下是 setup.bash 文件的内容:
#!/usr/bin/env bash
# generated from catkin/cmake/templates/setup.bash.in
CATKIN_SHELL=bash
# source setup.sh from same directory as this file
_CATKIN_SETUP_DIR=$(builtin cd "`dirname "${BASH_SOURCE[0]}"`" > /dev/null && pwd)
. "$_CATKIN_SETUP_DIR/setup.sh"