Idiomatic expression describing someone who acts nonchalant or defiant when they are actually in a difficult or shameful situation. The literal image is of a convict singing a carefree song while being led away. Used to comment on forced cheerfulness or false bravado.