Hacker News new | ask | show | jobs
by databasher 870 days ago
Bash handles spaces just fine.

  # store the command in an array
  X=(echo "A B")
  # execute the command
  "${X[@]}"
Yields:

  A B