I have a list of files (to be e-mailed). I need to append "-a" to each element of the list (this is a mutt requirement).

I tried this:

```
attachment+=(../*.log) 
attachments+=(-a "${attachment[@]}" )

```

But echo shows -a is append only one time (at the beginning). How do a I get a result like the following?

-a file1.log -a file2.log -a file3.log ...

This question appeared [here](https://stackoverflow.com/questions/33782416/tell-mutt-to-attach-files-listed-in-file/33782939#33782939).