Day after too many days, the defense lawyer Murray Richman went to the same restaurant for lunch, ordering the same meal as he had the day before: a Mayan sun salad with a sautéed filet of salmon.

He continued to do so until his murder trial in the Bronx finally ended on Wednesday, and he will resume the ritual the next time he goes to trial there.

“I’m eating the same food every freaking day,” Mr. Richman said recently, noting that the trial was lasting several weeks longer than he had expected. “It’s very good, but how many times can you eat it?”

For all his considerable skills at the bar and knowledge of the law, Mr. Richman, whose clients have included mobsters, politicians and rap stars, acknowledges a complicated and at times humorous interplay with superstition.