Skip to content

What does ${@:3} mean in dist_train.sh? #8906

Answered by i-aki-y
songyuc asked this question in Q&A
Discussion options

You must be logged in to vote

${@} is a special parameter that contains whole positional parameters ($1, $2, ...)
${@:n} means expand the array from n-th parameter to the end ($n, $n+1, ...)
For more detail, see the "${parameter:offset}" section in:
https://www.gnu.org/software/bash/manual/bash.html#Shell-Parameter-Expansion

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@songyuc
Comment options

Answer selected by songyuc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants