Yea that happened on an episode of Bonanza. It was Hoss in his jimmy’s getting a ham sandwich. Little Joe rigged some bottles so he could force Hoss to stay on his diet and win the $1500 bet at the Flapjack eating contest.
Now that you mention it… there is a striking resemblence that I have never noticed before.
It’s no coincidence. Lucas used all kinds of sources for his designs. If for example you watch the scenes in the movie The Enemy Below in which the crew of the American destroyer have gone to action stations, you’ll note some of them wearing historically accurate oversized helmets that look exactly like the ones worn by some of the Death Star technicians in Star Wars.