סימן עב סעיף ב
וְכָל הַמְחַלֵּל אֶת הַשַׁבָּת בְּפַרְהֶסְיָא, הֲרֵי הוּא כְּעוֹבֵד כּוֹכָבִים לְכָל דְּבָרָיו. אִם נוֹגֵעַ בְּיַיִן אוֹסְרוֹ. וְהַפַּת שֶׁהוּא אוֹפֶה הֲוֵי כְּמוֹ פַּת שֶׁל עוֹבֵד כּוֹכָבִים. וְכֵן הַתַּבְשִׁיל שֶׁהוּא מְבַשֵּׁל, הֲוֵי כְּמוֹ בִּשּׁוּלֵי עוֹבֵד כּוֹכָבִים (וְעַיֵּן לְעֵיל סִימָן ל"ח). וּפַרְהֶסְיָא הֲוֵי בִּפְנֵי עֲשָׂרָה מִיִשְֹרָאֵל. וְלָאו דַּוְקָא שֶׁעושֶׁה בִּפְנֵיהֶם מַמָּשׁ, אֶלָּא שֶׁיּוֹדְעִין מֵהָעֲבֵרָה (ש"ך סִימָן קנ"ז סָעִיף קטן ד'), דְּהָכִי מוּכָח בְּשַׁ"ס וּפוֹסְקִים, גַּבֵּי וְהָא אֶסְתֵּר פַּרְהֶסְיָא הֲוָה. וְכֵן כָּתַב הַפְּרִי מְגָדִים (יו"ד סִימָן ב'. שפ"ד סָעִיף קטן י"ז), פִּרְסוּם הֲוֵי עֲשָׂרָה מִיִשְֹרָאֵל אוֹ שֶׁיֵּדַע שֶׁיִּתְפַּרְסֵם (יו"ד סִימָן ב').
Anyone who desecrates the Shabbos publicly5Even one time (Shach, Yoreh Dei’ah 2: 5). is regarded as a non-Jew in every respect.6If he transgresses a Rabbinic prohibition of work (melachah) on Shabbos, the Peri Chadash rules that he is not like a non-Jew but the Ba’eir Heiteiv (Yoreh Dei’ah 2: 5) rules that he is. If he touches wine you are forbidden to drink it;7This is a Rabbinic prohibition. the bread he bakes is like the bread of a non-Jew;8This is a Rabbinic prohibition. the food he cooks is like the food cooked by a non-Jew.9This is a Rabbinic prohibition. "Publicly" means in the presence of ten Jews and it is not necessary that he actually desecrates the Shabbos in their presence, but [even] if they know of the desecration10Shach (Yoreh Dei’ah 157: 4) and Tevu’os Shor (Yoreh Dei’ah 2). it is considered public. This law is derived from the Talmud11Maseches Sanhedrin 74b. and poskim. The Talmud asks, "Was not the incident of Queen Esther public knowledge?"12Since her marriage to King Ahasverus was halachically illicit, and known to the public, why didn’t Esther give up her life rather than transgress the halacha? See Maseches Sanhedrin 74b. The Peri Megadim13Yoreh Dei’ah 2: 17 in Sifsei Da’as. ruled that "publicly" means in the presence of ten Jewish men, or when the desecration is public knowledge.
תנא דבי אליהו כל השונה הלכות בכל יום מובטח לו שהוא בן העולם הבא שנאמר הליכות עולם לו אל תקרי הליכות אלא הלכות (נדה ע"ג.)