Sourcing setup.sh in ZSH fails with parse error: condition expected: 0
I'm in ZSH in Manjaro Linux, and I'm new to ROS. I tried sourcing setup.sh
but it results in an error:
❯ source /opt/ros/melodic/setup.sh
/opt/ros/melodic/setup.sh:pwd:77: too many arguments
/opt/ros/melodic/setup.sh:83: parse error: condition expected: 0
Any ideas? What info can I provide to get better help?
EDIT, same thing if I source the zsh file:
❯ source /opt/ros/melodic/setup.zsh
/opt/ros/melodic/setup.sh:pwd:77: too many arguments
/opt/ros/melodic/setup.sh:83: parse error: condition expected: 0
source setup.zsh
@tianb03 same issue when sourcing the zsh file (edited OP)