`subcommand=${fullcommand#puppetdb-}`, which avoids an external command execution.