cmd continuation and $$ handling