GEMARA: “
[When] a festival falls on the eve of Shabbat,” etc. It is written: “That which you will bake, bake, and that which you will cook, cook”
(Ex. 16:23).
Rabbi Eliezer says: One bakes on
[the basis of] what is baked and cooks on
[the basis of] what is cooked.
Rabbi Yehoshua says: One bakes and cooks on
[the basis of] what is cooked. What is the reason of
Rabbi Eliezer? “That which you will bake, bake, and that which you will cook, cook.” What is the reason of
Rabbi Yehoshua? “That which you will bake and that which you will cook, cook.”
Rabbi Eliezer said: This accords with the one who says: Shabbat was given at Marah. But according to the one who says: Shabbat was given at Alush—they stood at Alush and were warned at Alush. Come and see: by Torah law it is forbidden, and an eruv of dishes permits it?
Rabbi Abbahu said: By law, one should be
[allowed to] bake and cook from the festival for Shabbat.
[But] if you say so, he too would bake and cook from the festival for a weekday. Come and see: one may make the beds from the festival for Shabbat, yet one may not bake and cook from the festival for Shabbat?
Rabbi Ila said: And why may one make the beds from the festival for Shabbat? Because one may make the beds from the night of Shabbat for Shabbat. Then let them bake or cook from the festival for Shabbat! One may not bake and cook from the night of Shabbat for Shabbat.
הלכה: יום טוב שחל להיות ערב שבת כול׳. כתוב את אשר תאפו אפו ואת אשר תבשלו בשלו. רבי ליעזר אומר. אופין על האפוי ומבשלין על המבושל. רבי יהושע אומר. אופין ומבשלין על המבושל. מה טעמא דרבי ליעזר. את אשר תאפו אפו ואת אשר תבשלו בשלו. מה טעם דרבי יהושע. את אשר תאפו ואת אשר תבשלו בשלו. אמר רבי ליעזר. אתיה כמאן דאמר. במרה ניתנה השבת. ברם כמאן דאמר. באלוש ניתנה השבת. עומדין באלוש ומזהירין באלוש. איתא חמי. דבר תורה הוא אסור. ועירובי תבשילין מתירין. אמר רבי אבהו בדין היה שיהו אופין ומבשלין מיום טוב לשבת. אם אומר את כן. אף הוא אופה ומבשל מיום טוב לחול. איתא חמי. מציעין את המיטות מיום טוב לשבת. ואין אופין ומבשלין מיום טוב לשבת. אמר רבי אילא. ולמה מציעין מיום טוב לשבת. שכן מציעין את המיטות מלילי שבת לשבת. ויאפו או יבשלו מיום טוב לשבת. אין אופין ומבשלין מלילי שבת לשבת.