A stack containing any unit with an attack of 0 does not attack. It just does nothing if you try to command it to attack an enemy unit even if you have multiple units with a valid attack. In the next turn the enemy unit even moved on the same field without triggering a fight.