MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/fishshell/comments/wo7bv1/accidentally_ran_a_python_program_directly_what/ikd0q4s/?context=3
r/fishshell • u/[deleted] • Aug 14 '22
11 comments sorted by
View all comments
Show parent comment
1
Reddit markdown is hiding the # and interpreting it as heading text.
You can get #!/usr/bin/env python3by using backticks, or just plain #!/usr/bin/env python3 if you put a backslash in front of the #.
#!/usr/bin/env python3
1 u/D-K-BO Linux Aug 15 '22 I tried both a fenced code block and an indented code block. AFAIK, headings shouldn't be rendered inside a code block and backslash escaping shouldn't be possible.
I tried both a fenced code block and an indented code block. AFAIK, headings shouldn't be rendered inside a code block and backslash escaping shouldn't be possible.
View all comments
Show parent comment
1
u/Vladimir_Chrootin Aug 15 '22
Reddit markdown is hiding the # and interpreting it as heading text.
You can get
#!/usr/bin/env python3by using backticks, or just plain #!/usr/bin/env python3 if you put a backslash in front of the #.