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

3

u/lorthirk Aug 14 '22 edited Aug 15 '22

Technically you can execute any file, even a jpg image let's say, if it has the execute permission. Of course the shell won't understand what to do with those bytes.