Closed JeremyBYU closed 5 years ago
The immediate issue is that we need to replace $@
with $argv
when translating bash alias to fish, but that won't get us very far: because of the way it works, Bass' support of alias is very basic. In this script, the aliases wraps around bash functions, and it's not easy to get it to work nicely.
My suggestion is you change the script and replace aliases with functions, and then you can use something like bass source foo.sh ';' func1
to invoke individual function. I tested the following simple script, and it seemed to work:
# foo.sh
function x {
echo "in function x:" $@
}
function y {
x $@
}
Invoking bass source /tmp/x.bash ';' y arg1 arg2 arg3
, and I get:
in function x: arg1 arg2 arg3
Thank you for your input.
I found this bash file online and am trying to source it with
bass
. It basically allows anaconda and ROS to coexist together; basically just modified python path and path env variables. However it doesnt seem to working when used with bash. Is the script to complicated to being converted for bass?Script:
Error when running
bass source FILE_NAME.bash