Don't work for local commands, need to use capture :(