Using export -f with broken xargs
I know there is a post here explaining how to do this, but I am doing exactly what it says, but cannot get my bash function to work with xargs. My bash profile looks like this:
export -f eb_deploy
function eb_deploy()
{
echo Deploying $1
eb deploy $1
}
function deploy_app()
{
aws elasticbeanstalk describe-environments --application-name $1 | grep EnvironmentName | cut -d: -f 2 | sed 's/\"//g' | sed 's/\,//g' | xargs -n1 eb_deploy
}
But I always get
xargs: eb_deploy: No such file or directory
Can anyone enlighten me as to why this is not working?
I'm currently running Mac OS X Yosemite Version: 10.10.3
+3
source to share
No one has answered this question yet
See similar questions:
or similar: