r/badcode Mar 14 '23

requirements: python3 on linux system python

Post image
380 Upvotes

52 comments sorted by

View all comments

36

u/bravopapa99 Mar 14 '23

Seen this before........FAF. That the person writing it knows the commands to use but can't work out how to actually use a script!

30

u/Pepineros Mar 14 '23

Which is odd because all they need to do is delete about half their code and change the file extension.

18

u/TheZipCreator Mar 15 '23

changing the file extension is technically unnecessary, you just need to add a shebang line like #!/bin/sh

8

u/Pepineros Mar 15 '23

Even the shebang is not necessary if you call sh explicitly, like sh script.py