ה כְּשֶׁהִכְשִׁירוּ בִּשְׁתֵּי דְּפָנוֹת הָעֲשׂוּיוֹת כְּמִין ג"ם בְּטֶפַח וְצוּרַת פֶּתַח, אֲפִלּוּ אִם יֵשׁ בִּשְׁתֵּי הַדְּפָנוֹת פְּתָחִים הַרְבֵּה שֶׁאֵין בָּהֶם צוּרַת פֶּתַח שֶׁכְּשֶׁתְּצָרֵף כָּל הַפָּרוּץ יִהְיֶה מְרֻבֶּה עַל הָעוֹמֵד, כְּשֵׁרָה רַק שֶׁלֹּא יִהְיוּ הַפְּתָחִים בַּקְּרָנוֹת, כִּי הַמְּחִצּוֹת צְרִיכִין לִהְיוֹת מְחֻבָּרִים כְּמִין ג"ם (רַ"ן); וּבִלְבַד שֶׁלֹּא יְהֵא בָּהֶם פִּרְצָה יְתֵרָה עַל י' אַמּוֹת; וְאִם יֵשׁ בָּהּ צוּרַת פֶּתַח, אֲפִלּוּ בְּיוֹתֵר מֵעֶשֶׂר. וּלְהָרַמְבָּ"ם, אֲפִלּוּ יֵשׁ לָהּ צוּרַת פֶּתַח, אִם יֵשׁ לָהּ פִּרְצָה יוֹתֵר מֵעֶשֶׂר, פְּסוּלָה אֶלָּא אִם כֵּן עוֹמֵד מְרֻבֶּה עַל הַפָּרוּץ. הַגָּה: וְנָהֲגוּ עַכְשָׁו לַעֲשׂוֹת מְחִצּוֹת שְׁלֵמוֹת, כִּי אֵין הַכֹּל בְּקִיאִין בְּדִין הַמְּחִצּוֹת (כָּל בּוֹ); וּמִי שֶׁאֵין לוֹ כְּדֵי צָרְכּוֹ לַמְּחִצּוֹת, עָדִיף אָז לַעֲשׂוֹת ג' מְחִצּוֹת שְׁלֵמוֹת, מִד' שֶׁאֵינָן שְׁלֵמוֹת (מַהֲרִי"ל).
5 When we deemed kosher a sukkah with two walls shaped like a gamma kosher by adding a tefach[-wide pseudo-wall] and a form of a doorway, this is kosher even if within the walls there are many openings that do not contain a form of a doorway and all of the breaches summed together will be more than the non-breach, (provided that openings are not on the corners, because the walls have to be connected like a gamma) (Ra"n)', as long as there is no opening greater than ten amot. If there is a form of a doorway, even more than ten [amot can be kosher]. According to the Ramba"m, even if there is a form of a doorway, if there is an opening greater than ten, it is invalid unless the non-open part is greater than the breaches. Rema: Our custom now is to make whole walls because not everyone is knowledgable about the laws of walls (Kol Bo). And if one does not have enough material for walls, it is preferable to make three complete walls rather than four that are incomplete (Mahari"l).