With a command line like "@/something" we would allocate an array with 0 elements. Avoid that, and add a test too.