Said in excitement, shock, awe, dismay, or supplication.
A mild oath expressing surprise, disbelief or annoyance. It is stereotypically regarded as being uttered by pirates.