ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

What is the purpose of `exec "$@"` in ?

asked 2016-08-08 17:17:17 -0500

spmaniato gravatar image

updated 2016-08-08 17:19:15 -0500

Looking at the Dockerfiles here: , what is the purpose of exec "$@", i.e., the last line in ?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2016-08-08 19:08:46 -0500

ahendrix gravatar image

exec "$@" causes the shell to exec the arguments that were passed in.

In this case, the ENTRYPOINT script is setting up the ROS environment and then executing the command that you gave it.

The docker documentation for ENTRYPOINT goes into more detail about what ENTRYPOINT files are and how they work.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2016-08-08 17:17:17 -0500

Seen: 2,149 times

Last updated: Aug 08 '16