Hacker News new | ask | show | jobs
by __david__ 4000 days ago
With the GNU tools you can generally use the `--` option to signal that no more options. That combined with quotes is usually enough:

    tar c -- "$directory_to_tar"