Some jokes take a thousand years to turn bad. This one turned in about six hundred, and it is still turning.
English has a word for the idea that a name shapes a life: nominative determinism. Chinese produced something odder. Two men were given names that happened to join into a single word, and the word outlived both of them, and then changed sides.
The idiom is 沆瀣一气 (hang xie yi qi). 沆瀣 is night vapour, the mist that condenses after midnight. 一气 means one breath, the same air.
Together, the four characters now mean: villains breathing the same air, men of the same rotten kind drawn to each other.
It has not always meant that. It began as a compliment, or something close to one.
The source is a Song dynasty notebook, the Southern New Records, which collects oddities from the Tang. The entry is one line long. The year is 875, and the place is the examination hall of the Tang capital.

To see why the line was funny, you need the machinery of the Tang examination.
The highest degree was the jinshi. A thousand men or more sat for it each year, and twenty or thirty passed. A saying of the period put the difficulty this way: thirty is old for the lower degree, fifty is young for the jinshi.
The men who passed had to call the examiner their seat master, and call themselves his door pupils.
That bow was not a formality. Seat master and door pupil were bound for life. The pupil rose and the master spoke for him. The master fell into trouble and the pupils worked for him. After the list went up, the new graduates had to go to the examiner’s house and give thanks, then to a banquet by the Serpentine, then to inscribe their names together on the Wild Goose Pagoda. The whole ceremonial was designed to tie men into a knot.
Which is why the examiner’s post carried so much weight.
Before the examination there was another custom, called presenting the scroll. A candidate copied out his best poems and prose, rolled them into a scroll, and sent them to a powerful man or a famous writer, asking him to say a good word. Before the examiner fixed the list, he made the rounds of the question: whose name has been praised this year. Half of every list was decided in the hall and half outside it.
In 875 the examiner was a man named Cui Hang.
Cui Hang came from the Boling Cui clan. His father had been chancellor. He himself had reached the post of drafter of edicts. That year the list of graduates was his to make.
The list went up. One of the names on it was Cui Xie.
Two men. The same surname. Both with single character given names.
One was named Hang. The other was named Xie.
Put the two characters together and you get hang xie: night vapour.
The list was posted on the eastern wall of the southern court of the Ministry of Rites. Crowds pressed against it. Some read from the top down, some from the bottom up, some looked only at the first five. That year, two Cui characters stood a few lines apart, and two single names with the water radical stood side by side.
Somebody in the capital read them together first.
Seat master and door pupil, hang xie, one breath.
Eight characters, and two separate facts collapsed into one. The examiner’s given name and the pupil’s given name, laid side by side, made a word. And the relation between the two men was already a matter of one breath: the same faction, the same air.
The joke travelled fast, because it was too neat. Neat enough to look deliberate.
People in the Tang loved this kind of wordplay. A name, a place, an official title: if the pieces fitted, the whole capital heard about it within the month. It was not malice. It was weather. Too many educated men with too little to do, and one coincidence could be chewed over for half a year.
The notebook records an earlier case first.
In 858 the examiner was Du Shenquan, and the pupil he passed was Lu Chuquan.
Somebody said at the time: the seat master Shenquan, the door pupil Chuquan. You could call that power that did not lose its power.
Both names contained the character for power. So the pun was power without loss of power.
Seventeen years apart, twice.
The two anecdotes sit a few lines from each other in the same volume. The compiler seems to have felt they belonged together. What the men of the Tang read on a results list was often not the writing. It was the names.
Which brings back the question of why this joke went bad while the other one faded.
Power without loss of power was forgotten within a generation. Hang xie, one breath, survived, and changed meaning.
At first it was a joke, with a faint note of admiration. Read those names together, they make the drink of immortals. What a pair.
Later it became an accusation.
By the Ming and Qing, the phrase had settled into its modern sense: villains in league. Writers of the later dynasties used it with the sort of company that included collusion and crooked partnership.
Why this phrase and not the other one?
Because of two things inside it. One is the word breath. The other is the pair of terms seat master and door pupil.
In the Tang those two words were an honour. In later centuries they were a suspicion. Each dynasty tightened the examination: names hidden, papers recopied by clerks, examiners sealed off from the world for the duration. Every tightening was an admission of how loose the thing had been before. Seen from the Song or the Qing, the Tang network of examiners and graduates looked less like scholarship and more like a party.
A phrase built out of that network carried the smell with it.
And one breath was always ambiguous. Among friends it means rapport. In an office it means collusion. The word did not change. The room did.
The two men themselves had very different afterlives.
Of Cui Xie, almost nothing survives. He passed that year and then vanished from the record. Not his style name, not his birthplace, not the posts he held. The only trace he left in history is the name itself.
Cui Hang left more. He rose to chancellor, and in 880, when Huang Chao took the capital, he did not get out. He hid in the house of Zhang Zhifang and was found and killed.
The army that killed him was led by a man who had sat the jinshi examination repeatedly and never passed. The old Tang history says so in as many words. A failed candidate destroyed the life of an examiner. There is no causation in that. There is only the same winter, and the same city.
Between the examination and his death: five years. For five years the word made of his name and his pupil’s name had been going around Chang-an.
The shape of this story is close to a cold joke.
Two men did nothing wrong. One ran the examination by the rules. One passed on his merits. Their names happened to fit together into a word, and the names were given by their parents, not chosen by themselves.
Because of those two characters, a piece of gossip followed them for life. One died in a sack of a city. The other did not even leave enough behind to be remembered as a person.
And the word lived. It outlived both men, changed its meaning, and ended up with no relation to either of them.
Hang xie is the vapour that condenses in the night. When the sun comes up, it goes.
Eleven hundred years later the two characters are still here. They just do not mean dew any more.
This is a strange kind of Chinese fable, because nobody in it learns anything. The Chinese proverb that came out of it is now used against people who deserve it, which is the ordinary fate of phrases. The Chinese idiom books keep it, with a note on the pronunciation, and a note that the meaning shifted. Nothing about the two men. One of them was simply unlucky in his given name, and the other was unlucky in the year he died.