In bash, how to join arguments of a function into a single string?
The seperator is fixed, and is not space (thus "$*"
is not what I want). Here use ", "
as example.
join_args() {
# join args with sep ", ", then echo the joined string
# ... code here
}
join_args abc def ghi
# abc, def, ghi