echo avoid uninitialized value and WARNING messages for some commands