Interaction of waves with shocks in magnetofluid-dynamics