They may not write a promissory note on chol haMoed, and if he does not believe him {that he will pay without this note} or if he does not have what to eat, he may write.Thye do not write {Torah} scrolls, tefillin and mezuzot on chol haMoed, and they may not correct even a single letter, even in the Torah scroll in the Azara {of the Temple, which was used to establish the correct girsa for all sifrei Torah}.Rabbi Yehuda says: A man may write tefillin and mezuzot for himself, and spin on his thigh blue strings for his tzitzit.

The Sages learnt {in a brayta}: A man may write tefillin and mezuzot for himself and others for free. These are the words of Rabbi Meir.Rabbi Yehuda says: He is allowed to resort to trickery, by selling his own and then writing for himself.Rabbi Yossi says: He may write and sell sufficient for his livelihood.

Rav ruled for Rav Chananel, and so did Rabba bar bar Chana rule for Rav Chananel, that he may write and sell sufficient for his livelihood.

Rav Yehuda cited Shmuel, and so did R' Chiyya bar Abba teach {tenei} in the name of Rabbi Yochanan: The halacha is that he may spin it, whether with a stone or with a spindle, and the halacha is that he may write and sell sufficient for his livelihood.

They learned in a Tosefta in Mashkim {second perek}: One may write his accounts on chol haMoed, and one may calculate his expenditures, and they may accept contractual work on chol haMoed to be performed after the Moed, but he may not measure, count or weigh in the manner that he does during a normal weekday.

If one buries his death three days before the Festival, the decree of seven days {once Yom Tov arrives} is canceled for him.Eight days before the festival, the decree of 30 days is canceled for him. For they said that Shabbat counts and does not break, and the Festivals break and do not count.Rabbi Eliezer says: Once the Temple was destroyed, Shavuot is like Shabbat.Rabban Gamliel says: Rosh haShana and Yom Kippur are like Festivals.And the Sages say not like the words of this one and not like the words of that one, but rather that Shavuot is like the Festivals and Yom Kippur and rosh haShana are like Shabbat.

The Sages learnt {in a brayta}: If he fulfilled turning over the bed three days before the Festival, he does not need to turn over the bed. These are the words of Rabbi Eleazar.And the Sages say: Even one day, and even one hour.

Rabbi Eleazar say: These are equal to the words of Bet Shammai and those are equal to the words of Bet Hillel. For Bet Shammai say 3 and Bet Hillel say even 1 day.

Rabbi Yochanan ruled to Rabbi Chiyya bar Abba: Even one day and even one hour.Rava said: The halacha is like the first Tanna of ours {in the Mishna above}, who said "if one buried his dead 3 days before the Festival..."

And the conclusion: Rav Chaviva from Sura of Perat said to Ravina: What is the halacha? He said to him: Even one day and even one hour. And so is the halacha.

Rav said: The institution is canceled, but the days are not canceled. Thus, if he did not shave erev the Festival, it is forbidden to shave after the Festival.

{Moed Katan 19b}And the halacha is not like Rav, for we establish like Abba Shaul who said that if the seventh fell on erev the Festival, he may shave on erev the Festival on the seventh day, for he holds that part of the day is like all of it, and the seventh day counts towards the count of seven and counts towards the count of eight, which is part of 30. And if he does not shave on erev the Festival, on his seventh day, he is permitted to shave after the Festival, for just as the mitzva of one day and one hour nullify the institution of seven, so does the mitzvah of one day and one hour nullify the enactment of thirty. And the Sages agree to Abba Shaul on the 30th day that a portion of the day is like all of it.Rava said: The halacha is like Abba Shaul on the 30th day and the halacha is not like him on the 7th day.

And the Nehardeans say: The halacha is like Abba Shaul in this and in that.For Shmuel said: The halacha is like the words of the more lenient.And so is the halacha.