In this 1982 musical, an absurd apprenticeship and the pirates’ sense of what they are owed drive the sailor’s choices. The film gives the stage story a different setup and treats changes of side as a joke.