Subin_Learner Subin_Learner - 2 years ago 181
Bash Question

what does $* mean in a shell script

What does

exactly mean in a shell script?

For example consider the following code snippet

$JAVA_HOME/bin/java/com/test/Testclass $*

Answer Source

It means all the arguments passed to the script or function, split by word.

It is usually wrong and should be replaced by "$@", which separates the arguments properly.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download