Comment Comment by databasher Bash handles spaces just fine. # store the command in an array X=(echo "A B") # execute the command "${X[@]}" Yields: A B parent databasher 2 years ago