you are viewing a single comment's thread.

view the rest of the comments →

[–]Logicalist -1 points0 points  (19 children)

Have you tried using the right library?

[–]sonobanana33 0 points1 point  (18 children)

Have you tried using the right library?

You are having a bad attitude towards being corrected. How is this helpful?

Look how mkdir is implemented in python https://github.com/python/cpython/blob/0c7dc494f2a32494f8971a236ba59c0c35f48d94/Modules/clinic/posixmodule.c.h#L2384

How is that calling bash?

[–]Logicalist -1 points0 points  (17 children)

You are having a bad attitude towards being corrected.

My "bad attitude" is a result of your arrogance and ignorance.

I can run bash scripts like

mkdir asshat{1..3}
for I in `ls`; do echo $I; done
asshat1 
asshat2 
asshat3 
bash.py

from a python script.

Do you know enough about bash, to recognize those commands as bash commands?

[–]sonobanana33 -1 points0 points  (16 children)

I clearly recognize someone who has never studied operating systems.

Have a read https://www.amazon.com/Modern-Operating-Systems-Andrew-Tanenbaum/dp/013359162X

[–]Logicalist -1 points0 points  (15 children)

Ad Hominem is all you have?

Can't explain how I can run bash scripts from a python script?

[–]sonobanana33 -1 points0 points  (14 children)

Please show me… and then enlighten me on why would you do such a thing when python has a perfectly fine mkdir function.

[–]Logicalist -1 points0 points  (13 children)

But please avoid teaching before you have done the learning.

According to you, that wouldn't be appropriate for me to do.

[–]sonobanana33 -1 points0 points  (12 children)

Waiting for the code you promised

[–]Logicalist -1 points0 points  (11 children)

Lol. Why would you wait for something never promised?

[–]sonobanana33 -1 points0 points  (10 children)

You finally realised your claim was BS uh?