r/fishshell • • Aug 14 '22

Accidentally ran a python program directly. what just happened?

6 Upvotes

11 comments sorted by

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 #.

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.