bash command spanning multiple lines with several lines of comments in-between [duplicate]

As far as I know Bash ignores everything after the '#' in a single command, and multilining won't change that. However you can probably achieve the same level of expression using bash arrays:

packagelist=(
  package1 # Inline Comments
  # Multiline Comments too
  package2
  # Package description goes here
  # Detailed descriptions..
)
sudo apt-get install ${packagelist[@]}